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]



  • 146 Users Found This Useful

Was this answer helpful?

Related Articles

Default Nameservers

If you have signed up for an Ultra 1x, Ultra Unlimited, or Ultra Unlimited Pro plan the following...

My site was hacked

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

I need a module installed but I do not have rights

No problem. Send us a trouble ticket and we will install the module as long as there are no...

How can I tell how much disk space I have available?

To see how much disk space you have available, go to your control panel and on the left side of...

Inode issues

There are many issues that can arise from reaching your inode limit. The inode limit is the total...