[ic] Mod_Rewrite

Jon Jensen jon at endpoint.com
Thu Sep 2 14:48:31 EDT 2004

On Thu, 2 Sep 2004, Aftermarket Cellular wrote:

> 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?

You may need to add this to your Apache configuration in the relevant 

AllowOverride All

That controls what directives are allowed in .htaccess files.


Jon Jensen
End Point Corporation
Software development with Interchange, Perl, PostgreSQL, Apache, Linux, ...

More information about the interchange-users mailing list