.httaccess not working

SBSP

Senior Member
Joined
Sep 7, 2007
Messages
663
I'm trying to convert ugly url parameters
from
PHP:
viewtutorial.php?id=10
to
PHP:
viewtutorial.php/10

using mod_rewrite.
the .httaccess file is in the root and when i add junk text to it it wont load any pages, that's how I know appache is loading .httaccess

My .httaccess file looks like this.
PHP:
# basic compression
<IfModule mod_rewrite.c>
	mod_gzip_on Yes
	mod_gzip_dechunk Yes
	RewriteEngine On
	RewriteRule ^([a-zA-Z0-9]+)$ viewtutorial.php?id=$1
</IfModule>

when i try to visit viewtutorial.php/10 the page seems to load without successfully grabbing data from mySQL

What am i doing wrong ?

I followed this
http://www.the-art-of-web.com/system/rewrite/1/
 
Last edited:
Top