Mihail Mojsoski Mihail Mojsoski - 1 year ago 112
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.

Answer Source

You can use in your .htaccess:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^.]+)$ /RequestHandler.php?path=$1 [QSA,L]
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download