how to fix 301 prob?

Discussion in 'HTML & Website Design' started by Armbarsalot, Nov 6, 2006.

  1. #1
    Hey all,
    new here.

    I am having a problem getting any URL that I am redirecting in my .htaccess, that has %20 in the line, to work! Here are the lines.... anything with %20 is not working... how can I fix this!? Thanks in advance...

    redirect 301 /index.shtml http://www.airandaqua.com/sunshop
    redirect 301 /shower.shtml http://airandaqua.com/shower%20water%20filters.shtml
    redirect 301 /aqq-4100%20shower%20water%20filters.shtml http://www.airandaqua.com/shower_water_filter.shtml
    redirect 301 /shower%20water%20filters.shtml http://www.airandaqua.com/benefits_shower_water_filter.shtml
    redirect 301 /water%20contamination%20hazards.shtml http://www.airandaqua.com/whats_in_your_water.shtml
    redirect 301 /sunshop/html/AQ-4100-Aquasana-Shower-Filter.html http://www.airandaqua.com/sunshop/html/Shower-Water-Filter.html
    redirect 301 /aquasana%20water%20filters%20catalog.shtml http://www.airandaqua.com/water_purification_systems.shtml
    Code (markup):
     
    Armbarsalot, Nov 6, 2006 IP
  2. Armbarsalot

    Armbarsalot Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This is crazy I have posted this on the sitereference forums also and one other webmasters forum but I can't seem to find any knowledge of this! eek...
     
    Armbarsalot, Nov 6, 2006 IP
  3. Gordaen

    Gordaen Peon

    Messages:
    277
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Just use quotes around the URL's and use actual spaces not %20's
     
    Gordaen, Nov 6, 2006 IP
  4. Armbarsalot

    Armbarsalot Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    wow... bro you just saved me... I can't believe I did not think of that... you would be amazed at some people on other forums who gave me all types of answers and none of them worked.... Thanks again!
     
    Armbarsalot, Nov 27, 2006 IP