Jump to content

Mod Rewrite Issue


pontypete

Recommended Posts

Hi Guys, this should be something simple, but I keep getting a 500 Internal Server Error each time I visit my website when I upload my htaccess which consists of...

 

 

RewriteEngine On

RewriteRule ^([^/]*)$ /view.php?id=$1 [L]

 

my website is currently getting the id value for database reference, however I want the desired results below:

 

website.com/1

not

website.com/view.php?id=1

 

any help will be great.

 

Thanks in advance!

 

Pete

Link to comment
https://forums.phpfreaks.com/topic/272664-mod-rewrite-issue/
Share on other sites

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.