RewriteRule for unknown directory
问题 So I'm trying to get a mod_rewrite rule to redirect requests to a php-script with an .htaccess file. The thing is, I want it to work regardless of where I put the project on a webserver (the .htaccess file and the php-script are always in the same folder). The rewrite itself is very simple. If the script and the .htacess are in the directory /path/to/project and the user visits: /path/to/project/somestring it should be rewritten to: /path/to/project/index.php?t=somestring This should work for