Solved

|EASY| Redirect base on referer in .htaccess

Posted on 2008-10-23
2
290 Views
Last Modified: 2012-05-05
I want to redirect people coming from
e.g
http://www.xxx.com/anything.anything
http://xxx.com/anything.anything

to www.google.com
but its not working..
any problem??


RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://www.xxx.com [NC]
RewriteRule http://www.google.com [NC]
0
Comment
Question by:royalgoldleaf
2 Comments
 
LVL 9

Expert Comment

by:mgonullu
ID: 22787655
0
 
LVL 27

Accepted Solution

by:
caterham_www earned 500 total points
ID: 22800556
Your rule-pattern is missing
RewriteEngine On

RewriteCond %{HTTP_REFERER} ^http://(www)?\.xxx\.com [NC]

RewriteRule ^  http://www.google.com

Open in new window

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now