I am just trying to get mod_rewrite working and I am having a massive mental block where nothing seems to be working.
My .htaccess file hides the file extension of my files and I'm not sure if this is why my rewrite isn't working.
Here is my .htaccess code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteRule ^([^/]+)/([^/]+)/$ /$1.php?project=$2
Options +FollowSymLinks
With the rewrite rule I am trying to get projects.php?project=1 to display as projects/project/1
Would really appreciate it if someone could enlighten me as to what I am doing wrong.