Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a multi-languages website with urls like:

fr.mysite.com
es.mysite.com
it.mysite.com

I want to change it with .htacces to mysite.com

is it possible for all of them?
Posted

1 solution

All you need is described here:
http://httpd.apache.org/docs/current/howto/htaccess.html[^].

And this is the description of Redirect: http://httpd.apache.org/docs/2.4/mod/mod_alias.html#redirect[^].

This is an interesting application helping to simplify configuration: http://www.htaccessredirect.net/[^].

Other more powerful and flexible technique are called URL rewriting and URL redirection:
http://en.wikipedia.org/wiki/URL_rewriting[^],
http://en.wikipedia.org/wiki/URL_redirection[^].

This is how it looks on Apache: http://httpd.apache.org/docs/trunk/rewrite/remapping.html[^].

Now you are armed. Good luck,
—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900