How do I remove phantom .php pages showing up in search engine results ? (5 posts)

  1. youareth
    Posted 3 years ago #

    I'm not quite sure how to explain (technically), but our website was transfered over to a WordPress platform a couple years ago. However, the 'old' pages (which I am unable to locate in my WordPress) keep popping up on Google searches. They are the same URLs as the current pages, except they end in .php, and are the old versions with old info. They are not visible as pages in my dashboard. I've periodically used Google Webmaster Tools to remove the URLs from search results and cache, but they eventually reappear. I would love to find them and remove them internally, I just don't know how! I'm fairly new at handling WordPress webpages, so any guidance would be greatly appreciated!

    Here is a link to the regular search results: https://www.google.com/search?q=urth+yoga&aq=f&oq=urth+yoga&aqs=chrome.0.59j5j61l2j0l2.1933&sourceid=chrome&ie=UTF-8

    And the 'more results from website' search results (where you can see the links ending in .php - they are the old pages I want to remove / delete): https://www.google.com/search?q=urth+yoga&aq=f&oq=urth+yoga&aqs=chrome.0.57j5j61l2j0l2.1230&sourceid=chrome&ie=UTF-8#q=+site:urthyoga.com+urth+yoga&sa=X&ei=qqOGUabtFqTL0gH50oG4AQ&ved=0CFcQrAM&bav=on.2,or.r_cp.r_qf.&bvm=bv.45960087,d.dmQ&fp=61967fd3e70e14f3&biw=1274&bih=679

    Thanks in advance!

  2. Peter_L
    Posted 3 years ago #

    The .php pages are probably your old website. But, the site is still there. These pages were created outside of wordpress. they have nothing to do with WordPress.

    1. delete old website pages
    2. use .htaccess to redirect old .php url's to new WordPress Pages (301 redirect)
    3. after a week or two, check webmaster tools and remove pages again

  3. youareth
    Posted 3 years ago #

    Hi Peter, and thanks for the reply.

    I've already set up 301 Redirect within WordPress, in fact all of the old .php pages (source page) are currently set up to redirect to the current pages (target page), however it is not working (since the search result still takes you to the old pages).

    How would one delete the old website pages?

  4. Peter_L
    Posted 3 years ago #

    Ftp and delete is probably simplest. Be careful not to delete any wp files.

  5. youareth
    Posted 3 years ago #

    Thanks a million Peter - I figured out how to log into FTP, found the old pages and deleted them, problem solved!

Topic Closed

This topic has been closed to new replies.

About this Topic