Buying Need 301 redirect htaccess

Discussion in 'Programming' started by userman, Sep 20, 2012.

  1. #1
    Hi,

    I need 301 redirect from upper case to lower case. I use google for i get the solution, but i get error with my actual config of htaccess.

    My htaccess file:
    RewriteEngine On

    RewriteRule ^(.*)file1/(.*)\.php$ upload.php?name=$2&eff=file1 [QSA,L]
    RewriteRule ^(.*)file2/(.*)\.php$ upload.php?name=$2&eff=file2 [QSA,L]
    RewriteRule ^(.*)file3/(.*)\.php$ upload.php?name=$2&eff=file3 [QSA,L]

    Options All -Indexes

    How can i add the 301 redirect from upper case to lower case without conlift with my actual rewriterule.

    Thanks.
     
    userman, Sep 20, 2012 IP
  2. userman

    userman Active Member

    Messages:
    158
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    As Seller:
    100% - 2
    As Buyer:
    100% - 0
    #2
    With 2 days working with google, i get the solutions finally!!!

    I want use .htaccess and not!!! i must use virtualhost config.

    regards.
     
    userman, Sep 20, 2012 IP
  3. Riboflavin

    Riboflavin Well-Known Member

    Messages:
    1,091
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    155
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    This can be accomplished with .htaccess as well :)
     
    Riboflavin, Sep 20, 2012 IP
  4. Izikeo

    Izikeo Member

    Messages:
    122
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    Change QSA to R=301

    My free and good deed for the day.
     
    Izikeo, Sep 20, 2012 IP