htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: mod_rewrite 500 - Internal server error
PostPosted: 25 Sep 2008 09:03 
Offline

Joined: 25 Sep 2008 08:40
Posts: 1
Hello!

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB