.htaccess referral redirect

It is often useful to redirect a visitor to a page based on the referring website. There are innumerable reasons to do this and can be a wonderful way to create a personal experience for the visitor. 

Edit your .htaccess file and add the following:


RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://(www\.)?partnerwebsite\.com
RewriteRule ^$ /other_directory/specific_page.shtml [L]


  • 144 Users Found This Useful

Was this answer helpful?

Related Articles

Add Flash Chat to your Website

We ran into this website recently which allows you to easily insert a flash chat room into your...

I am unable to delete a file.

This can occur for several reasons. With our service, if a directory of a script was found to...

My site was hacked

This typically occurs when you are running a script/app on your website which is out-dated and...

Why is my account suspended?

Why is my account suspended? If you are receiving an account suspended page when trying to access...

Meta Redirect

Adding this code to your web page will redirect your visitors to any address that you have...