Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-02-2008, 05:24 PM   PM User | #1
jcdevelopment
Senior Coder

 
jcdevelopment's Avatar
 
Join Date: Oct 2007
Location: Cowboy Nation
Posts: 2,171
Thanks: 173
Thanked 257 Times in 257 Posts
jcdevelopment will become famous soon enoughjcdevelopment will become famous soon enough
redirecting a folder to be the URL?

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!
jcdevelopment is offline   Reply With Quote
Old 06-02-2008, 05:30 PM   PM User | #2
Pennimus
Senior Coder

 
Join Date: Jul 2005
Location: UK
Posts: 1,051
Thanks: 6
Thanked 13 Times in 13 Posts
Pennimus is on a distinguished road
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.
Pennimus is offline   Reply With Quote
Old 06-02-2008, 05:34 PM   PM User | #3
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,045
Thanks: 8
Thanked 1,029 Times in 1,020 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
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.
mlseim is offline   Reply With Quote
Users who have thanked mlseim for this post:
jcdevelopment (06-02-2008)
Old 06-02-2008, 05:35 PM   PM User | #4
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
I think http://www.codingforums.com/showthread.php?t=75198 is all about this! (and you may get some more from this sub-forum)
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 06-02-2008, 06:32 PM   PM User | #5
jcdevelopment
Senior Coder

 
jcdevelopment's Avatar
 
Join Date: Oct 2007
Location: Cowboy Nation
Posts: 2,171
Thanks: 173
Thanked 257 Times in 257 Posts
jcdevelopment will become famous soon enoughjcdevelopment will become famous soon enough
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 is the site if anyone needs to know in future questions.
jcdevelopment is offline   Reply With Quote
Old 06-03-2008, 03:53 AM   PM User | #6
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
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.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:01 PM.


Advertisement
Log in to turn off these ads.