Tony M Posted May 4, 2011 Posted May 4, 2011 I want to update My website... the pages would be mainly updated to php (because I updated them to show php current time on every page...), but the pages extensions were .html ... So My question is: (what is recommended to do?) Should I still use the .html extension (to the new and old pages) and make in .htacess .html to be processed as .php OR Should I use .php extension (for the new and old pages)? (some say that .html is better for Search Engine Optimization...) Quote
Wizard Posted May 4, 2011 Posted May 4, 2011 Are you doing anything other than the current time? If you just want a clock-like thing on your pages, you might consider embedding javascript in your html pages instead. Making all your pages get rendered by php seems inefficient. Quote
Tony M Posted May 4, 2011 Author Posted May 4, 2011 Are you doing anything other than the current time? I am using php include in some pages... Quote
Tony M Posted May 4, 2011 Author Posted May 4, 2011 Yes, but what is the include for? A normal php include: http://php.net/manual/en/function.include.php To include the same header and footer across all pages.... Quote
Guest Geoff Posted May 5, 2011 Posted May 5, 2011 I would recommend just renaming all your pages to .php. Quote
Deep Thought Posted May 7, 2011 Posted May 7, 2011 (some say that .html is better for Search Engine Optimization...) It is, and analytics services (like Google Analytics and Clicky) fare better on .html pages. I'd recommend sticking to it and parsing it as PHP. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.