Folder -> Subdomain

New to mod_rewrite? This is a good place to start.

Folder -> Subdomain

Postby Derice » Thu Mar 01, 2007 10:58 am

I have a subdomain on my site.
It can be reached through subdomain.example.com
However it can also be reached through example.com/subdomain.

When the last one is used all the content is mixed up.
What I need to do is to rewrite something that whenever example.com/subdomain is accessed you automatically end up at subdomain.example.com

How can I fix this?

Never mind, found it already:

redirect 301 /subdomain/ http://subdomain.example.com/
Derice
 
Posts: 12
Joined: Fri Feb 09, 2007 10:46 am

Return to Beginner's Corner

Who is online

Users browsing this forum: Google [Bot] and 6 guests

cron