Results 1 to 4 of 4
  1. #1
    Affiliate Manager Matt McWilliams's Avatar
    Join Date
    July 21st, 2006
    Location
    Fort Wayne, IN
    Posts
    2,838
    URL Case Sensitivity on Linux
    Does anyone know how to set our linux server up to address case sensitivity?

    We have a URL such as www.mysite.com/page.html

    if you go to www.mysite.com/Page.html it does not work.

    Can we create a redirect server-side to blanket handle these?

    If not, what are your suggestions to address this? I would like the page in question to receive SEO benefit from links that have the capital letter so what sort of redirect would you suggest?

    Thanks a ton!
    Matt McWilliams
    Call Me At: (317) 825-8826 | Follow Me On Twitter: @MattMcWilliams2 | Connect With Me On LinkedIn

  2. #2
    ABW Ambassador
    Join Date
    October 22nd, 2006
    Posts
    1,065
    The following in .htaccess will force a all lower case url with a 301 redirect

    RewriteEngine On
    RewriteMap lc int:tolower
    RewriteCond %{REQUEST_URI} [A-Z]
    RewriteRule (.*) ${lc:$1} [R=301,L]

  3. #3
    Affiliate Manager Matt McWilliams's Avatar
    Join Date
    July 21st, 2006
    Location
    Fort Wayne, IN
    Posts
    2,838
    Thank you Sam. I REALLY appreciate your help!

    Is there anything else we need to write in robots.txt or elsewhere to makes sure the lower-case page still gets the link juice for SEO?
    Matt McWilliams
    Call Me At: (317) 825-8826 | Follow Me On Twitter: @MattMcWilliams2 | Connect With Me On LinkedIn

  4. #4
    Newbie
    Join Date
    April 13th, 2010
    Location
    Bucharest
    Posts
    1
    the 301 redirect not only redirects the page visitor but the ranking too, so if you have a 301 redirect from page A to B all links pointing to A are considered for B. Good luck!
    P.S. if you do url rewrites in your urls you can use the [nc] code to specify that the urls is case insensitive.

  5. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Case sensitivity
    By Radegast in forum WebMerge (Fourthworld.com)
    Replies: 6
    Last Post: March 30th, 2006, 05:01 PM
  2. URL Upper vs Lower Case
    By jdsguam in forum WebMerge (Fourthworld.com)
    Replies: 4
    Last Post: May 18th, 2004, 06:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •