View Single Post
  #7 (permalink)  
Old 10-13-2008, 09:13 PM
SEO's Avatar
SEO SEO is offline
WebProWorld Pro
 
Join Date: Apr 2008
Posts: 157
SEO RepRank 1
Default Re: How do you 301 redirect a dynamic URL (URL with a question mark in it)?

Try adding this code to your header:

<script type="text/javascript">
if(top!= self) top.location.href = self.location.href
</script>


More information about Hijacking below:

Quote:
Originally Posted by SEO View Post
I had a website hijacked a few years ago (2 websites actually)...

One of them displayed my site within a frame on their site and displayed their Google Adsense code above all of my pages. A code very similar to the one posted above helped me with that problem (although by the time I figured it out it was too late, the damage had been done).

I also had somebody else doing a 302 meta refresh to one of my websites.

I found some helpful information on these pages:
Stop 302 Redirects and Scrapers from Hijacking Web Page PR - Page Rank
How to Find a Hijacker using 302 Redirects and Report Them
How to Report a 302 Redirect or Web Page Hijackings and Scapers
How to Stop Content Theft
How to Find a Scraper Directory and Report them to Google

For a "break out of frames script" look here:
I Hate Frames

Or here is a good one:
<script type="text/javascript">
if(top!= self) top.location.href = self.location.href
</script>

I hope this helps... I know how disheartening it can be when some mongrel hijacks your website.
Reply With Quote