RewriteRule without changing the address in the browser
Posted
by framp
on Stack Overflow
See other posts from Stack Overflow
or by framp
Published on 2010-03-08T00:18:20Z
Indexed on
2010/03/08
0:33 UTC
Read the original article
Hit count: 554
mod-rewrite
|rewriterule
Hello everybody!
I'm trying to make an address redirect to another one without actually changing the url in the browser address bar.
User go to domain.com/path/page.php and see what is displayed on domain.com/path/index.php
In the address bar the url remains domain.com/path/page.php
This is the code for the redirection:
Options +FollowSymLinks
RewriteEngine On
RewriteRule page.php index.php [NC]
I'm wondering if I need to use [P] for this task :/
Thanks in advance for you replies
© Stack Overflow or respective owner