htaccess help

Discussion in 'Blogging' started by venthi76, Oct 5, 2010.

  1. venthi76

    venthi76 Regular Member

    Joined:
    Oct 4, 2009
    Messages:
    419
    Likes Received:
    138
    Hi,

    I've done something similar in my wordpress .htaccess file. However, it keeps ignoring %3 when the link loaded in browser.

    So when a user click on http://www.abc.com/file/myfilename.html it rewrite the url to http://www.abc.com/my-search-results?cx=01234567890Aotprorpuzwo&cof=FORIDA10&ie=UTF-8&q=$1&sa=abc+Search&siteurl=www.abc.com%2F#1171

    Take note that it suppose to be http://www.abc.com/my-search-results?cx=01234567890%3Aotprorpuzwo&cof=FORID%3A10&ie=UTF-8&q=$1&sa=abc+Search&siteurl=www.abc.com%2F#1171

    Please help.

    Code:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    #RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !^/(file|photo) [NC]
    RewriteRule . /index.php [L]
    
    RewriteRule ^file/(.*)\.html http://www.abc.com/my-search-results?cx=01234567890[B][COLOR=Red]%3[/COLOR][/B]Aotprorpuzwo&cof=FORID[B][COLOR=Red]%3[/COLOR][/B]A10&ie=UTF-8&q=$1&sa=abc+Search&siteurl=www.abc.com%2F#1171 [L]
    </IfModule>
    
     
    Last edited: Oct 5, 2010