Welcome to WebmasterWorld Guest from 54.167.175.218

Forum Moderators: coopster & jatar k

naming pages with php

use .php in web page name?

   
3:56 am on Dec 13, 2012 (gmt 0)

5+ Year Member



I just removed a cms on my website. In order to keep the php pages, I had to change the file names from .htm to .php. I did a 301 redirect on all pages. However, I noticed in webmaster tools that they were no longer indexed the next day and after a couple days only 10% were added back into index.

Any suggestions?
5:36 am on Dec 13, 2012 (gmt 0)

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



You could yank the redirect and replace it with a rewrite. OR you could revert the pages to their original names, and insert a line* in your htaccess telling the server to parse .htm as .php.

And then hope google decides it was just a momentary glitch and puts everything back the way it was. How much time are we talking about?


* Don't look at me. But there was a post on this subject-- including exact wording-- within the last day or two, so someone will know.
5:41 am on Dec 13, 2012 (gmt 0)

5+ Year Member



We are only talking 5 days,
9:36 am on Dec 13, 2012 (gmt 0)

WebmasterWorld Senior Member swa66 is a WebmasterWorld Top Contributor of All Time 10+ Year Member



The googlebot works slowly, they should come back if the only change was the URL and it was 301 redirected from the old to the new.
10:10 am on Dec 13, 2012 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



When you change around the names and extensions of files as used inside the server, there is rarely a need to change the URLs that are used out on the web to access that content.

The server configuration has many ways to achieve this. There was never any need to start messing around with redirects.
2:30 pm on Dec 13, 2012 (gmt 0)

5+ Year Member



Are you using a mySQL database or a flat file database?Which pages are currently being indexed?
2:34 pm on Dec 13, 2012 (gmt 0)

5+ Year Member



All pages that are not php are fine. Thanks for the feedback. I contacted my host and will read more about using the htaccess file.
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month