Good day!
I want to make proper redirect by htaccess, when there is GET request like this:
http://ift.tt/1JeIi0o
It should give example.org/page.php
My htaccess lets only redirect this kind of request
http://ift.tt/1yD16WQ
I use this config
#remove extension
RewriteRule ^([^\.]+)$ $1.php [NC,L]
#remove directory
RewriteRule ^directory/(.*)$ /$1 [L]
Thank you for attention!
Aucun commentaire:
Enregistrer un commentaire