![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
|
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help. |
|
Thread Tools |
![]() |
#1 |
Registered User
Industry Role:
Join Date: Dec 2010
Posts: 33
|
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? |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#2 |
Too lazy to set a custom title
Industry Role:
Join Date: Jul 2001
Location: Currently Incognito
Posts: 13,827
|
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.
__________________
![]() ![]() ![]() It's all disambiguation ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Aug 2007
Location: Philippines
Posts: 285
|
try to validate first your html in w3c so you can see your html errors you need to validate also your css/xhtml.
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#4 | |
Web Developer
Industry Role:
Join Date: Jan 2011
Location: UK
Posts: 264
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#5 |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
|
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...
__________________
Make a bank with Chaturbate - the best selling webcam program ![]() ![]() ![]() Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!! PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email: ![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#6 | |
Too lazy to set a custom title
Industry Role:
Join Date: Feb 2005
Posts: 17,230
|
Quote:
Code:
AddType application/x-httpd-php .html AddType application/x-httpd-php .htm |
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Sep 2009
Posts: 997
|
rewrite .php urls to .htm urls using .htaccess file
best if u cab get page titles in page url name. thx |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#8 |
Registered User
Industry Role:
Join Date: Dec 2010
Posts: 33
|
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. |
![]() |
![]() ![]() ![]() ![]() |