Check referer to redirect


#1

I’ve registered a domain www.de-primula.nl and a domain www.de-sleutelbloem.nl.
Visitors of www.de-primula.nl are linked to www.de-sleutelbloem.nl.
But how to redirect them to www.de-sleutelbloem.nl/de-primula?
I’ve the following lines in my .htaccess:
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^www.de-primula.nl$ [NC]
RewriteRule . http://www.de-sleutelbloem.nl/de-primula [L]
So, if the referer is from www.de-primula, they should be directed to http://www.de-sleutelbloem.nl/de-primula.
What’s wrong with it? I’m always ending in www.de-sleutelbkloem.nl in stead of www.de-sleutelbloem.nl/de-primula.


#2

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.