icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Coding and Programming » Not Sure If I'm Redirecting A Subdomain Properly

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old February 18th, 2004, 5:26 PM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Jan 2004
22 posts
Gave thanks: 0
Thanked 0 times
I have a domain and I'm trying to set up a subdomain to point to a specific folder on my domain. So for example, using Cpanel, I've set up a subdomain called folder that redirects to http://mydomain.com/folder

However, if I type http://folder.domain.com, once I get redirected to http://domain.com/folder, the url in my broswer address bar changes to http://domain.com/folder.

I'm trying, without success to make sure that if I was to type http://folder.domain.com, I will get redirected to http://domain.com/folder, but in my address bar, the url would remain as http://folder.domain.com

Here's the steps which I've taken to redirect My Subdomain ? Am I forgetting to do something ?

1. Log into Cpanel and click on Subdomains
2. Add folder.mydomain.com
3. Select folder.mydomain.com and click on Setup Redirection
3. Type http://mydomain.com/folder and click on Save.
BreakStuff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 18th, 2004, 5:57 PM   #2 (permalink)
Peaches!
Excelling Contributor
 
Joined in Jul 2003
Lives in Ottawa, Ontario, Canada
Hosted on Jose, Pass19
564 posts
Gave thanks: 0
Thanked 0 times
The redirection thing won't do what you're trying to do. What you need (I think, and I'm probably wrong) is something like mod_rewrite.
__________________
alex.honeywell [ seigousei.net - pass19, binuweb.com - jose ]
AlexH is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 18th, 2004, 6:45 PM   #3 (permalink)
Surpass Fan
On a golden path...
 
Joined in Nov 2003
432 posts
Gave thanks: 0
Thanked 0 times
You shouldn't need redirection. Just create a subdomain and it should work like you want.
__________________
Fw Web Solutions
http://fwwebs.com
fwwebs5 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 19th, 2004, 2:03 PM   #4 (permalink)
Registered User
Fresh Surpasser
 
Joined in Jan 2004
22 posts
Gave thanks: 0
Thanked 0 times
Thanks ! I got it working just how I wanted it when I just added the subdomain and left out the redirection !
BreakStuff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On