Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

|EASY| Redirect base on referer in .htaccess

Posted on 2008-10-23
2
Medium Priority
?
303 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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.
Suggested Courses

670 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