Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- php inside html documents


g1smd - 11:20 pm on Apr 27, 2009 (gmt 0)


You can set the PHP 'include' files location with one line of code in .htaccess instead.

.

*** You need to rename all your pages that use the include as .php and not .html ***

Never do this. Giving every page of your site a new URL is a very very bad idea. You lose all of your backlink credits. Every entry in any search engine SERPs returns a 404 error. Your traffic will dry up in hours, and take many months to recover. Use the AddHandler directive instead.

If you really do have to rename the files, set up a rewrite so that requests for the old .html URLs will still pull content from the new .php files, without revealing the new file names. Carry on linking to .html URLs within the site, so that people still see the same old URLs 'out on the web'.


Thread source:: http://www.webmasterworld.com/php/3901544.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com