Dynadot โ€” .com Registration $8.99

Problem with Mod_Rewrite

Spaceship Spaceship
Watch
Impact
0
I really need some help with Mod_Rewrite as I can't seem to get it working on my site. I've set up the following in the .htaccess file in the root folder of my site:

RewriteEngine on
RewriteRule ^view/([0-9][0-9])/$ view.php?id=$1

This should be allowing me to link to http://www.templatessite.com/view/8906/ instead of http://www.templatessite.com/view.php?id=8906 but it doesn't seem to be working.

Mod_Rewrite is definately enabled on my server so I don't understand why it isn't working.

Any help would be appreciated. Thanks.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Looks like it only is looking for 2 numbers

Give this a shoot (untested)
Code:
RewriteEngine on
RewriteRule ^view/([0-9]+)/$ view.php?id=$1
 
0
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Unstoppable Domains
Domain Recover
DomainEasy โ€” Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back