Url User Friendly, hide original address with variables
- by user1075086
this is my simple htaccess that redirect all calls to index.php or to error.php
It work fine but I would hide the original address from the address bar.
#Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php [L]
ErrorDocument 404 /error.php
Now if I go on www.mysite.com/news/last
I can view www.mysite.com/index.php?p=news§ion=last
but I wish it did not change in the address bar.
Thanks in advance ;)