![]() |
Adding Dynamic PHP to a site with Static Pages
I would like to add dynamic PHP pages to my site that is currently all static HTML pages.
I have a few concerns, primarily off page issues. I'm currently redesigning my site to update automatically. Some problems might be:
How do I make my static HTML page dynamic PHP without screwing up my search engine results? |
Does the dynamic php change have a query string or something?
Other than any changes to your site can change your rankings, going dynamic vs. static for automatic updates shouldn't hurt your rankings or give you a penalty. With 404 errors and pages already in the index, you do 301 redirects. Or name the files the same .html files, in a .htaccess file add AddType application/x-httpd-php .html to get the html to execute the php. 301 redirect example for your .htaccess file redirect 301 /path/of/old/file.html http://www.domain.com/full-new-path.php You can also use Google Webmaster Tools, verify your site, and let Google tell you about any errors that you missed... easy way to make sure those important pages you may have missed get corrected. |
try to validate first your html in w3c so you can see your html errors you need to validate also your css/xhtml.
|
Quote:
|
you can also tell apache to parse .html file same as .php ones
this way you'll have .php files with html extension... it's easy to do and to maintain in future... |
Quote:
Code:
AddType application/x-httpd-php .html |
rewrite .php urls to .htm urls using .htaccess file
best if u cab get page titles in page url name. thx |
Everyone thanks for the tips on parsing html as php.
I just tried it on my local machine thru Wamp Server. I used this: Code:
AddHandler application/x-httpd-php .html So it looks like I can use all the same file names. |
All times are GMT -7. The time now is 03:19 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc