Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

External Link to "product_info.php"


RMD27

Recommended Posts

Hi,

 

I have an issue, an external site is referring visitors to pages on my site that do not exist and this is causing me 404 errors.

 

I have sorted them all out except this one.

 

The link is to "product_info.php". I do not know how to sort this out.

 

I have tried a 301 redirect to my index page but this effects all the product pages so none of them are viewable if I do this.

 

Does anyone have any ideas how I can put a 301 redirect on this link without it effecting the real product pages?

 

I am using SEO URLs, RC2.2a

 

Thanks in advance!

Link to comment
Share on other sites

Make a separate redirect (ahead of everything else) where you select on both product_info.php AND the referrer's host IP or name:

RewriteEngine On
RewriteCond  %{REQUEST_URI}  product_info\.php  [NC]
RewriteCond  %{HTTP_REFERER}  (www\.)?some_bad\.com [NC]
RewriteRule  .  /some_other_place  [R=301,L]

 

If you don't know what other host(s) this is coming from, this won't work.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...