Forum Moderators: phranque
I am totally stuck on Apache Rewrites and it's driving me bonkers!
I have a recently added multi-lingual functionality to my site and my URLs display as domainname.com/en/ or domainname.com/fr/. The problem is that i have loads of links in google that currently do not make use of the new /country/ format.
Is there a rewrite rule i could use so that if /en/ is found in my url it is stripped out?
Sorry if this sounds confusing but i am totally new to this!
Thanks for your time...
URLs display as domainname.com/en/ or domainname.com/fr/
Is that the wanted format, or the unwanted format?
Is there a rewrite rule I could use so that if /en/ is found in my url it is stripped out?
Yes, there's a rule you can use, but first we need to clarify whether you need a redirect or a rewrite, and what the old and new URLs look like, and what filenames the URL requests map to.
All or only some of the above 'URL-questions' may apply, based on what you've done in the past, but it's important to clarify this before the first line of code is even discussed...
Jim