Forum Moderators: phranque

Message Too Old, No Replies

How to fix my duplicate URLs caused by case inconsistencies?

mod_rewrite upper case

         

lruellan

3:01 pm on Feb 2, 2007 (gmt 0)

10+ Year Member



Dear members of the Webmasterworld community,

Here is my problem: I realized yesterday that google has put half of my site to the supplemental index. Upon further investigation, I discovered that google was indexing duplicate entries of my pages because I had not normalized the case of my URLs. I'm afraid this caused my site to be flagged for duplicate content and have these pages moved to the supplemental index.

Here are for instance two URLs that got indexed, pointing to the same page:

http://www.example.com/clubs/pacha/
http://www.example.com/clubs/Pacha/

I corrected all my links to lower case and tried fix this mess by implementing redirects in my htaccess with the line:

redirect 301 /clubs/Pacha/ /clubs/pacha/

Unfortunately, this doesn't seem to be working and I get a 500 error.
The trick here is that I actually use mod_rewrite and the URL

http://www.example.com/clubs/pacha/

is actually rewritten to

http://www.example.com/guide/guide.php?categroy=clubs&name=pacha

I'm not sure if this combination of redirect and mod_rewrite is causing this 500 error.
Anybody here has some advice on how to correct my problem?
Thank you in advance.

Lothaire

[edited by: jdMorgan at 3:35 pm (utc) on Feb. 2, 2007]
[edit reason] Example.com. Please see Terms of Service. [/edit]

jdMorgan

3:37 pm on Feb 2, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What version of Apache are your using. What operating system?

What is the contents of your server error log when you get the 500-Server Error?

Jim