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.

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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