You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install ginfinity chrome extension to allow infinite scrolling through Google results
Search for all indexed urls using query like site:example.com
Scroll through all the results (hope there is not too much :)
Once all results are shown, open Dev Tools JS console and run this command (document.querySelectorAll('.g .r > a')).forEach(function(el) { console.log(el.href) });
2. Setup redirects in .htaccess
Single URL
#with or without trailing slash
RewriteRule ^contact/?$ "/contact.html" [R=301,L]
Using location hash
#hashes - use NE flag to no escape
RewriteRule ^back-pain/?$ "/index.html#scroll-services" [R=301,NE,L]
Remove query string if present
#either add ? to the end of target url, or for Apache >= 2.4 use QSD flag (query string discard)
RewriteRule ^blog/?$ "/index.html?" [R=301,L]
#regexp to cover more variants
RewriteRule ^product/(dumbells|blue-shoes|yellow-shoes)/?$ "/index.html?" [R=301,L]
Multipe URLs with multiple targets
#redirect any file with the .html extension to use the same filename but use the .php extension instead.
RedirectMatch 301 (.*)\.html$ http://www.domain.com$1.php