.htaccess - How do I do this 301 redirect - Strange problem

Discussion in 'Apache' started by peppy, Jul 10, 2009.

  1. #1
    First of all, I have only a few strange URLs created by a language translator program. The original problem is fixed but I have a few stubborn URLs that won\'t 301 correctly.

    How do I 301 redirect in .htaccess:
    http://www.mysite.com/zt/ ALkJrhhNfTOh4CDm8NEiUlvcDBJ9AWMvIA/
    to
    http://www.mysite.com/zt/


    In the URL in my address bar has a blank space instead of a "%20".

    Also, I have done this so far and it didn't redirect properly:
    Redirect 301 "/zt/ ALkJrhhNfTOh4CDm8NEiUlvcDBJ9AWMvIA/" http://www.mysite.com/zt/
    Code (markup):
    Instead, it redirect the URL to the URL below and I was unable to make any progress afterwards:

    http://www.mysite.com/zt/?lang=zt&url=%20ALkJrhhNfTOh4CDm8NEiUlvcDBJ9AWMvIA/


    Is there a solution to this?
     
    peppy, Jul 10, 2009 IP