Mihail Mojsoski Mihail Mojsoski - 4 months ago 15
Apache Configuration Question

URL Rewrite PHP .htaccess

I do not know how i can code the .htaccess file to make it rewrite a URL like this:


into this:


I am not sure if this even possible, if it is impossible tell me.


You can use in your .htaccess:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^.]+)$ /RequestHandler.php?path=$1 [QSA,L]