How can I redirect URL for example
http://www.example.com/home to http://www.example.com/index.php?action=home without changing it on top address bar
Options +FollowSymLinks
RewriteEngine On
# If it's not a request for an existing file
RewriteCond %{SCRIPT_FILENAME} !-f
# and it's not a request for an existing directory
RewriteCond %{SCRIPT_FILENAME} !-d
# rewrite.
RewriteRule ^([^/]+)/?$ /index.php?action=$1 [QSA,L]
Return to Friendly URLs with Mod_Rewrite
Users browsing this forum: No registered users and 51 guests