I have been trying to add a mod_rewrite to a site but its only barely working.
This URL, "http://domain.com/folder/server/subfolder/index.php" should be rewritten to "http://domain.com/folder/subfolder/index.php?platform=server"
This is the last version i'v tried so far.
RewriteEngine On
RewriteCond %{REQUEST_URI} !(css|images|scripts|js|files)
RewriteRule ^([A-Za-z0-9]+).*/(.*)$ $2?platform=$1& [L]
The rule should work for every URL, wether there are no subfolders, just 1 or 5. What i can not do is make the rewriteRule do stuff like index.php/server/argument2/argument3 cause i would have to rewrite all the code to be compatible to this.
Any help would be greatly appreciated.