Solved

|EASY| Redirect base on referer in .htaccess

Posted on 2008-10-23
2
300 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Do you have a plan for Continuity?

It's inevitable. People leave organizations creating a gap in your service. That's where Percona comes in.

See how Pepper.com relies on Percona to:
-Manage their database
-Guarantee data safety and protection
-Provide database expertise that is available for any situation

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to count occurrences of each item in an array.

636 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