Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Problem with Mod_Rewrite

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

mattswebsolutions

Established Member
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
Close
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
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back