wrathican Posted July 23, 2008 Share Posted July 23, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/116178-first-time-use-of-htaccess-and-mod_rewrite/ Share on other sites More sharing options...
Prodigal Son Posted July 24, 2008 Share Posted July 24, 2008 Did you make sure mod rewrite is enabled on your localhost, in the php.ini file? Quote Link to comment https://forums.phpfreaks.com/topic/116178-first-time-use-of-htaccess-and-mod_rewrite/#findComment-598545 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.