Jump to content

first time use of htaccess and mod_rewrite


wrathican

Recommended Posts

hey people im trying to use mod_rewrite to change the look of a url

this is the original url: http://localhost/gallery.php?func=viewpic&alid=2&picid=11 (ignore locahost)

this is the rewritten url: http://localhost/viewpic/2/11.html

 

but for some reason its not working on my localhost (says internal server error) or on my live site(no erros, but no rewritten url)

 

this is the code im using.

RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)/([^/]*)\.html$ /gallery.php?func=$1&alid=$2&picid=$3 [L]

 

any ideas why its not woking.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.