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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.