WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a site that has pages being indexed in Google in the form...


And since the permalinks of the site have been set to postname since the site was created, I'm trying to determine how these links are being created and where I might be able to find the source file that created the link index.

I realize its possible that the site was indexed prior to the permalink update, but just trying to determine if there is a script I'm not aware of that might be accessible to a search engine spider.

Any insights?

share|improve this question
up vote 1 down vote accepted

There are two places bots would look: your sitemap (if you submitted one to google), and your robots.txt. WordPress itself doesn't put anything in robots.txt (unless you set your site to private, then it tells the bots not to index anything), nor does it create xml sitemaps that google would use.

There are a few plugins that will do this for you, though. I know Google XML Sitemaps is popular, and works for me. Yoast's SEO plugin also creates sitemaps for you.

I think the easiest way to get Google to start indexing correctly is to create a sitemap with one of those two plugins and then submit it to google using google webmaster tools.

share|improve this answer

If your site was previously indexed with those URLs, then they will remain until Google's spider gets around to recrawling your site. Then it will notice the redirects from the old URLs to the new ones, and correct itself accordingly.

This is not a fast process. May take months.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.