So, lately Ive been trying to learn mod_rewrite and to create flat-paths for my site. My problem; it doesnt work!
What I want is to change my current URLs which look like this:
http://localhost/site2/index.php?pg=mlt&id=a
to:
http://localhost/site2/index/mlt/a/
My .htaccess is inside the folder "site2" and looks like this so far:
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule RewriteRule /([^/]+)/([^/]+)/ index.php?pg=$1&id=$2 [NC]
But nothing works.... Is that because it isn`t installed by default on localhost(Mac OS X Leopard) or have I done something wrong?