I changed the entire website content and got into a script app from WordPress
now I can see many 404s in the Google search console, one of my friends said add 410 to old URLs, and request indexing again.
so Google can delete them from the search console.
There’s .htaccess code.
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -Indexes
</IfModule>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^website.com$
RewriteRule ^(.*)$ https://website.com/$1 [R=301,L]
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
The old URLs contain bunch of links with wp-content/. Get/.. Download/.. Download-category.. Prefixes and some single URLs.
Whats the best .htaccess content to add 410 tag into these pages ?
igrafix TM is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.