2012-10-29, 07:06 PM
Hi! I just realized that if I type any arguments into the adress, I don't get an error, but I remain on the page. That would not be a problem, maybe, but I had wordpress another forum software installed, and google indexed those non existing pages as my home page.
Example:
With smf I had this link:www.mysite.com/forumdisplay.php?fid=10 but this link does not exist anymore and when google came to crawl it , it indexed my homepage because www.mysite.com/forumdisplay.php?fid=10 shows as my homepage.
If I go to mysiste.com/pagedoesnotexist, I get a 404, which is good.
But if I go to mysiste.com/index.php?pagedoesnotexist it directs me to my homepage.
How can I redirect arguments that don't make any sense to a 404?
Thanks!
Example:
With smf I had this link:www.mysite.com/forumdisplay.php?fid=10 but this link does not exist anymore and when google came to crawl it , it indexed my homepage because www.mysite.com/forumdisplay.php?fid=10 shows as my homepage.
If I go to mysiste.com/pagedoesnotexist, I get a 404, which is good.
But if I go to mysiste.com/index.php?pagedoesnotexist it directs me to my homepage.
How can I redirect arguments that don't make any sense to a 404?
Thanks!