Jump to content


Photo

Mod Rewrite Issue


  • Please log in to reply
1 reply to this topic

#1 pontypete

pontypete

    Newbie

  • New Members
  • Pip
  • 8 posts

Posted 03 January 2013 - 05:41 PM

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

#2 requinix

requinix

    Transforming Moderator

  • Moderators
  • 6,323 posts
  • LocationWA

Posted 03 January 2013 - 06:20 PM

And what does Apache's error log have to say on the matter?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com