I have site we are building that has 100’s of products and pages listed in Google.
My client asked today:
With migrating to our new WordPress site, is there a plan to redirect our pages from the old site to the new site? Our existing site must be mapped by google, and assuming that the URLs change, we could lose organic traffic overnight.
In answer to his question we created an .htaccess file to re-direct all of the old urls to the new ones but with 100’s of pages how did we get a file with all those URL’s listed – the answer wasn’t difficult.
1.) In order to get a list of URL’s for a site Google provides the search query site:yoursite.com . This query returns a list of your pages that are indexed. This leaves us with 2 dilemmas. How do we copy the URL’s and how do we get over that there are only 10 search queries on the Google Search Engine Results Page (SERPS). Let deal with one at a time.
2.) Open your search results page and look to the right hand corner.
3.)Select Search Setting and check the box as below.
Google Instant predictions
Never show Instant results.
You will them be able to alter the amount of results shown per page – increase this to 100.
4.) Install the ginfinity Chrome Extension.
5.) Refresh your page and you will now have an infinite scrolling serps page – all you need to do now is export the list.
6.) Go to the page I found this great info on and find the link to drag and drop into your bookmarks bar, https://www.highposition.com/blog/how-to-extract-list-urls-indexed-by-google-for-your-website/
7.) You can now copy and paste the information your need to your .htaccess file
For a more in-depth explaination or to read the comments as they may help you answer any questions head over to: