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...)
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.
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...
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....
Guest Geoff Posted May 5, 2011 Posted May 5, 2011 I would recommend just renaming all your pages to .php.
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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now