mod_rewrite - redirecting without changing the URL
Posted: Tue Aug 29, 2006 8:28 am
I'm really not sure if this is possible; what I want is to redirect people who visit http://www.source.tld like this;
RewriteEngine on
RewriteRule ^(.*)$ http://www.destination.tld/splash.php$1 [R=301]
But the flaw with this rule is that the URL is also changed. Is it possible to redirect a user without changing the URL and without using a 100% sized frame?
I don't want to use a frame because the splash.php page is supposed to get the referrer etc and store these in a DB. There are a lot of source domains and I don't want to upload a hundred files when anything changes.
RewriteEngine on
RewriteRule ^(.*)$ http://www.destination.tld/splash.php$1 [R=301]
But the flaw with this rule is that the URL is also changed. Is it possible to redirect a user without changing the URL and without using a 100% sized frame?
I don't want to use a frame because the splash.php page is supposed to get the referrer etc and store these in a DB. There are a lot of source domains and I don't want to upload a hundred files when anything changes.