In .htaccess
RewriteRule ^proj/([0-9]+)/$ proj.php?id=$1 [L]
The rule works fine. It converts localhost/mysite/proj.php?id=1 into localhost/mysite/proj/1/.
The problem then is that images, css and js files can’t be found by the browser. Is it possible to do something with rewrite rules to get around that, instead of using absolute paths?
This does not help with the problem you have now, but will resolve a problem you could have on another server that has MultiViews enabled. Servers that do have this enabled will serve proj.php when you request /proj/whatever, but this doesn’t use the RewriteRule. So it looks as if it does, but it doesn’t, and you don’t get your $_GET info. This is a royal PITA to debug, so I thought I’d give you a heads up