Url User Friendly, hide original address with variables

Posted by user1075086 on Stack Overflow See other posts from Stack Overflow or by user1075086
Published on 2011-12-01T09:46:17Z Indexed on 2011/12/01 9:51 UTC
Read the original article Hit count: 401

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&section=last but I wish it did not change in the address bar.

Thanks in advance ;)

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about mod-rewrite