...

View Full Version : redirecting a folder to be the URL?



jcdevelopment
06-02-2008, 05:24 PM
How can i take a folder for example:

http://www.sitename.com/folder/
and change that to

folder.sitename.com

How would i go about changing that so when somone types in folder.sitenmae.com it will automatically go to that folder's index page?

Im not sure if that is confusing but let me know if you need more info. Thanks guys!

Pennimus
06-02-2008, 05:30 PM
You set up a subdomain in your hosting control panel. You can then set the destination of that subdomain - the place where it will pull content from - to anything you like.

Check your hosts help files for how to set up a subdomain.

mlseim
06-02-2008, 05:34 PM
No examples for you, but my feeling is it's going to be an .htaccess rewrite rule.

Search using Google: .htaccess rewrite url

Check back again, because others might
have an actual example to give you.

abduraooft
06-02-2008, 05:35 PM
I think http://www.codingforums.com/showthread.php?t=75198 is all about this! (and you may get some more from this sub-forum)

jcdevelopment
06-02-2008, 06:32 PM
ok, thats really what i was lloking for. I googled it and found a real easy way that explained it pretty well. Thanks to all of the suggestions.

here (http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html) is the site if anyone needs to know in future questions.

_Aerospace_Eng_
06-03-2008, 03:53 AM
Though many web hosts make it very easy for you to setup subdomains so you may want to try that first as it saves you some work.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum