[Solved] How to rewrite url for Get variable in php [duplicate]
The .htaccess is actually only 1 half of the job. This .htaccess will achieve what you want (I think) RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l RewriteCond %{REQUEST_URI} !^.*\.(jpg|css|js|gif|png)$ [NC] RewriteRule ^(.+)$ index.php?request=$1 [QSA,L] This .htaccess turns all your requests into index.php?request=myurl on the background, while on the front it says … Read more