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.

 

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 02-03-2011, 06:38 PM   #1
choona
Registered User
 
choona's Avatar
 
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:
  • 404 errors
  • Google penalties
  • Pages that are already indexed by search engines

How do I make my static HTML page dynamic PHP without screwing up my search engine results?
choona is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-03-2011, 08:41 PM   #2
TheDoc
Too lazy to set a custom title
 
TheDoc's Avatar
 
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.
__________________
~TheDoc - ICQ7765825
It's all disambiguation

Last edited by TheDoc; 02-03-2011 at 08:44 PM..
TheDoc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-04-2011, 09:09 AM   #3
Jakenavaro
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.
Jakenavaro is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-04-2011, 10:05 AM   #4
robber
Web Developer
 
Industry Role:
Join Date: Jan 2011
Location: UK
Posts: 264
Quote:
Originally Posted by choona View Post
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:
  • 404 errors
  • Google penalties
  • Pages that are already indexed by search engines

How do I make my static HTML page dynamic PHP without screwing up my search engine results?
You should be able to achieve a working site that shouldn't change any links by utilising mod_rewrite within your .htaccess file. You will be able to design all your dynamic content and provide meaningful pages without too much hardwork, and your design can be easily amended or changed depending upon what you are wanting to achieve. If you redirect any old links to our new pages any page rank attached to the old pages should transfer over to the new ones. If you want to clarify anything or have, feel free to send me a message on icq, I'm happy to help.
robber is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-04-2011, 08:36 PM   #5
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
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:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-04-2011, 08:49 PM   #6
Denny
Too lazy to set a custom title
 
Denny's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 17,230
Quote:
Originally Posted by HomerSimpson View Post
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...
yep, I did it like that way a few times.

Code:
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
__________________

Last edited by Denny; 02-04-2011 at 08:52 PM..
Denny is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-05-2011, 08:35 AM   #7
seoguyzzz
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
__________________
icq:- 563619491


article submissions + directory submissions
seoguyzzz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-10-2011, 02:07 AM   #8
choona
Registered User
 
choona's Avatar
 
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
Instead of adding this code to .htacces, I used httpd.conf

So it looks like I can use all the same file names.
choona is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.