Reputation: 361
I'm trying to rewrite the following URL
www.domain.com/?part=messages
to:
www.domain.com/messages
I've folowed some .htaccess tutorials but I couldn't. How can I make it work?
Upvotes: 1
Views: 211
Reputation: 786001
This is pretty simple rule actually:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+?)/?$ /?part=$1 [L,QSA]
Upvotes: 2