Hi!
I´m trying to get dynamic url´s to static with .htaccess without any success.
For example something like :http://www.mydomain.com/cgi-bin/myshop/shop.cgi?action=start&urlpath&artikelname
to
http://www.mydomain.com/cgi-bin/myshop/ ... elname.htm
This is what I have put in my .htaccess.
---------------------------
AddType text/html .shtmlAddHandler server-parsed .shtml
DirectoryIndex index.html index.shtml index.php index.php3 index.htm
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^(.*)\/(.*?)\.htm$
RewriteRule ^(.*)\/(.*?)\.htm$ /cgi-bin/myshop/shop.cgi?action=start&urlpath=$1&artikelname=$2 [L]
RewriteCond %{REQUEST_URI} ([^\/]*)\.htm$
RewriteRule ([^\/]*)\.htm$ /cgi-bin/myshop/shop.cgi?action=start&artikelname=$1 [L]
RewriteCond %{REQUEST_URI} /(.*)\.shtml$
RewriteRule \/(.*?).html$ /cgi-bin/myshop/shop.cgi?action=search&searchword=$1 [L]
RewriteCond %{REQUEST_URI} /(.*)\.shtml$
RewriteRule (.*).html$ /cgi-bin/myshop/shop.cgi?action=search&searchword=$1 [L]
-----------------------
The response I get is a 500 internal server error. Any help would be much appreciated.
Thanx