I've been tring for some time now with htaccess to rewrite this url
http://www.domain.com/folder/file.php?id=whatever to
http://www.domain.com/?id=whatever Any help would be much appreciated !
I've been tring for some time now with htaccess to rewrite this url
http://www.domain.com/folder/file.php?id=whatever to
http://www.domain.com/?id=whatever Any help would be much appreciated !
Must be something like
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^$ folder/file.php [QSA] look for the exact syntax urself ... also notice the QSA flag ... actually it redirects the query string from called url to actual url ... also you can not match the part after '?' ie the query string in the regex ...