Forum Moderators: phranque

Message Too Old, No Replies

Exclude an element from the url

Exclude an element from the url

         

bennyticklez

5:07 pm on Nov 16, 2009 (gmt 0)

10+ Year Member



Hi!

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...

g1smd

8:04 pm on Nov 16, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



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.

jdMorgan

12:17 am on Nov 17, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In general, we need to know:
What URLs do you currently link to on your pages?
What URLs you want listed in Google?
What URLs did you used to link to on your pages?
What URLs are currently listed in Google?
What are the correct filepaths for these URLs inside your server?

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