Page 1 of 1
I want to point 2 or more than 2 URLs to point to the same l
Posted: Mon Jul 17, 2006 5:39 am
by Papiya Sinha
I want to point 2 or more than 2 URLs to point to the same location on my server.How can I do that ?
e.g. if I have xyz.com server...
and i want
http://www.xyz.com/AAAA/
and
http://www.xyz.com/BBBB/
to point to the same folder location when anyone acess that through URL..how can I do that ?
Thanks in advance.
Posted: Mon Jul 17, 2006 6:11 am
by Chris Corbyn
mod_rewrite for apache. Google it

Posted: Mon Jul 17, 2006 6:11 am
by matthijs
You can use mod_rewrite in your htaccess for that (search here or on google for rewriting and clean urls). But be carefull with pointing more then one url to the same content. Search engines might not like that. So make sure you use permanent redirects (302 it is if I'm right).
Posted: Mon Jul 17, 2006 7:31 am
by timvw
An Alias would suffice already...
Posted: Mon Jul 17, 2006 8:16 am
by Chris Corbyn
timvw wrote:An Alias would suffice already...
Oh yeah. Doh!
Code: Select all
Alias /real/location false/location/
Posted: Mon Jul 17, 2006 9:14 am
by matthijs
Alias?
Does that go in the htaccess as well?
Posted: Mon Jul 17, 2006 9:45 am
by JayBird
matthijs wrote:Alias?
Does that go in the htaccess as well?
Yes