Seeking help from someone familiar with PHP code.
Having uploaded a new Joomla CMS site to the root, I found that Google had crawled all the new content as it appeared in the build folder and indexed it. Instant duplicate content…. well done, Google.
I’ve deleted all the duplication, but I want to clean the Google index by applying a 410 Gone status to all the URL’s that included the build folder name (joomla30) anywhere in the URL. I’ve tried every published suggestion for using a rewrite in the .htaccess but nothing works, so I'm hoping an entry in the error.php file might work.
Can someone code the second line in the following:
<?php
if the URL contains "joomla30” (without quotes) anywhere in the string) {
header("HTTP/1.0 410 Gone”);
} ?>