301 Redirect. Need help. Having a hard time.

New to mod_rewrite? This is a good place to start.

301 Redirect. Need help. Having a hard time.

Postby overstride1 » Thu Sep 24, 2009 7:59 am

I'm trying to redirect http://www.example.com/asp.pl?_puri=ast ... FA%2Fassid to the front page of my site and can't get it to work. Can anyone help?
overstride1
 
Posts: 1
Joined: Thu Sep 24, 2009 7:58 am

Postby richardk » Fri Sep 25, 2009 12:17 pm

Try
Code: Select all
Options +FollowSymLinks

RewriteEngine On

RewriteCond %{QUERY_STRING} ^(.*&)?_puri=astore\.amazon\.com/thegi02-20/detail/B0001L0DFA/assid(&.*)?$ [NC]
RewriteRule ^asp\.pl$ /? [R=301,L]

You may need to replace /s in the QUERY_STRING regular expression with %2F.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 8 guests

cron