Jump to content

URL Case Sensitive Issue Casing Ranking Problems


zehrila

Recommended Posts

Okay, by default my urls structure is in mixed case, e.g domain.com/Green-Blue-Widgets.html  and Google for some reasons is indexing two versions of my urls domain.com/Green-Blue-Widgets.html and domain.com/green-blue-widgets.html . Now i want to 301 redirect all urls to lowercase, but my internal navigation is all mixed case e.g the category page domain.com/Green has all the products listed in the page with mixed case.

 

I know its bad programming, but i will really appreciate if any one can look into the matter for me and usggest a solution.

from what I gather, you have a database with words like "Green", "Blue", "Whatever" that you use to list stuff and then build urls, is that correct?

in that case you should either convert all to lowercase in database and user ucwords() before displaying them (so they look nice for the visitor) and the raw output to build the links, or the inverse: don't change anything, present the raw output to the visitor, but build the urls with strtolower() to ensure they're all lowercase.

 

(I may be misinterpreting you problem)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.