301 redirecting Upper Case to Lower Case using regular expression?

Discussion in 'Site & Server Administration' started by sphinz, Aug 4, 2011.

  1. #1
    does anyone know if using a regular expression to 301 redirect urls with upper-case file names to lower-case file names will work?  Site is running off of Wordpress and Joomla (working on migration to full wordpress).

    Example is .com/Article-Title.php  301 redirecting to .com/article-title.php
     
     
    sphinz, Aug 4, 2011 IP
  2. damien.carter1

    damien.carter1 Peon

    Messages:
    77
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    yes it will work as technically they are different files and all your saying to serps is that the link is no longer .com/Article-Title.php its now .com/article-title.php.

    hope this helps if it did please visit my site below
     
    damien.carter1, Aug 4, 2011 IP
  3. sphinz

    sphinz Member

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    Will it work with all different CMS'?  My tech team told me that they were unable to do this using a regular expression.  Any resources/pointers?
     
    sphinz, Aug 5, 2011 IP
  4. damien.carter1

    damien.carter1 Peon

    Messages:
    77
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    what they are saying i believe to be correct as it would be hard to write an expression to do this. However if you already have several file likeTh-TP.html you can redirect them to th-tp.html but you would have to do them all MANUALLY via your htaccess if you are using wordpress this could be done easier using a plugin such as redirection but still you would have to manually create the redirects.
     
    damien.carter1, Aug 5, 2011 IP