[ic] Mod_Rewrite

Aftermarket Cellular wfiore at aftermarketcellular.com
Thu Sep 2 13:54:04 EDT 2004


Hi,

I am trying to use the rule below to rewrite the following url:

Old Url: http://aftermarketcellular.com/~aftermar/cgi-
bin/cart.cgi/scan/fi=cat/sp=pcs_results_area.html/st=db/co=yes/sf=sel/se
=AUDIOVOX/tf=description/ml=12/va=banner_image=/va=banner_text=.html

New Url: http://aftermarketcellular.com/AUDIOVOX.html

My .htaccess file looks like this:

RewriteEngine On 
Options +FollowSymlinks
RewriteBase / 
RewriteCond %{REQUEST_URI} !index.php
RewriteRule ^([^/]+)/([^/]+)/?$    /~aftermar/cgi-
bin/cart.cgi/scan/fi=cat/sp=pcs_results_area.html/st=db/co=yes/sf=sel/se
=$1/tf=description/ml=12/va=banner_image=/va=banner_text=$2

The file is located in my public_html directory but doesn't seem to be 
doing anything. Is there something wrong with my rewrite rule or am I 
missing something else? I am using 4.8.9.

Thank you

Bill



More information about the interchange-users mailing list