homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

naming pages with php
use .php in web page name?

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

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)

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)

We are only talking 5 days,


 9:36 am on Dec 13, 2012 (gmt 0)

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)

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)

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)

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved