SEO | Link Popularity | Search Engine Consulting | SEO Tutorial | SEO Tools | SEO Forum
Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 11-28-2004, 02:51 PM
mnemtsas's Avatar
mnemtsas mnemtsas is offline
SEO
 
Join Date: May 2004
Posts: 125 mnemtsas is on a distinguished road
Static HTML to PHP

I've spent the last few days (finally) learning about PHP. How do I make the move from static HTML to PHP without destroying my SERPS? So if I convert index.htm to index.php what do I do?
__________________
Mark Nemtsas

Timesheet Software ::
Jogging Strollers
Reply With Quote
  #2  
Old 11-28-2004, 03:18 PM
jocelyn's Avatar
jocelyn jocelyn is offline
Moderator
 
Join Date: Mar 2004
Location: Montréal / Canada
Posts: 5,155 jocelyn has a spectacular aura aboutjocelyn has a spectacular aura aboutjocelyn has a spectacular aura about
I'm also curious about this one...

Maybe if bluewidgets.html is indexed and now would be build from index.php?item=bluewidgets, maybe using the item field to mod_rewrite it to bluewidgets.html

Cool avatar, makes me smile all the time.
Reply With Quote
  #3  
Old 11-28-2004, 05:39 PM
mnemtsas's Avatar
mnemtsas mnemtsas is offline
SEO
 
Join Date: May 2004
Posts: 125 mnemtsas is on a distinguished road
Hi Jocelyn,

I am wondering initially if I do a straight mod rewrite to write index.htm to index.php will this mean no loss in terms of SERPS or PR? I want to convert the pages to php to take advantage of common headers and footers initially. With more advanced behaviour like you describe later.

Yes the photo is cute, the nicest one we have of my son. He certainly likes wearing that hat!

Mark
__________________
Mark Nemtsas

Timesheet Software ::
Jogging Strollers
Reply With Quote
  #4  
Old 11-28-2004, 05:51 PM
seo guy's Avatar
seo guy seo guy is offline
Uber Uber Mod
 
Join Date: Oct 2003
Posts: 2,441 seo guy has much to be proud ofseo guy has much to be proud ofseo guy has much to be proud ofseo guy has much to be proud ofseo guy has much to be proud ofseo guy has much to be proud ofseo guy has much to be proud ofseo guy has much to be proud of
Actaully if you want to take advantage of .php on your server side you can still keep your pages .htm as far as what the output is using mod_rewrite the rule is pretty simple it is something like

RewriteRule ^(.*).htm $1.php [L]

SEO Guy seems to be all static .html pages but on the server we are 100% php and rewrite our URL's this way
__________________
Vote for your favorite SEO site and tell your visitors about this great place, please link to us http://www.seo-guy.com with the anchor text SEO and let them know how you feel
Reply With Quote
  #5  
Old 11-28-2004, 06:03 PM
mnemtsas's Avatar
mnemtsas mnemtsas is offline
SEO
 
Join Date: May 2004
Posts: 125 mnemtsas is on a distinguished road
OK I've found the easiest solution for me. It's to add another apache type using:

AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm

in my .htaccess files. This means anything in a html file is parsed with php.

Thanks SEO Guy, I'll add the rewrite rule as well so any new PHP files appear as htm file.

Cheers,
__________________
Mark Nemtsas

Timesheet Software ::
Jogging Strollers
Reply With Quote
  #6  
Old 11-28-2004, 06:21 PM
seo guy's Avatar
seo guy seo guy is offline
Uber Uber Mod
 
Join Date: Oct 2003
Posts: 2,441 seo guy has much to be proud ofseo guy has much to be proud ofseo guy has much to be proud ofseo guy has much to be proud ofseo guy has much to be proud ofseo guy has much to be proud ofseo guy has much to be proud ofseo guy has much to be proud of
yeah its less confusing and best to keep things consistant
__________________
Vote for your favorite SEO site and tell your visitors about this great place, please link to us http://www.seo-guy.com with the anchor text SEO and let them know how you feel
Reply With Quote
  #7  
Old 11-29-2004, 05:10 AM
Gilgul Gilgul is offline
SEO Junior and a half
 
Join Date: Nov 2004
Posts: 70 Gilgul is on a distinguished road
Just keep in mind that by doing so you are requesting the server to parsed using php. This can cause a lot of unnecessary load on the server and may even cause severe slow down in loading pages (if you have a lot of requests at the same time).

You can use html file and use php include:
ex.
<?php
include("ind.php");
?>

Or you can create a function and include it through ssi.

In general php files are server-side, means upon being called they are parsed into regular html, so once being spidered all the se sees is plain html.

Let me know if you neem more help with php, I'll be glad to help.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Login/Register
User Name
Password
Remember Me?

Forum Links
Forum Home
SEO Forum
Internet Marketing Forum
Web Design Forum
Web Hosting Forum
Programming Forum
SEO Chat

Quick Links
Forum Home
New Posts
Mark Forums Read
Open Buddy List
User Control Panel
Edit Avatar
Edit Profile
Edit Options
Miscellaneous
Subscribed Threads
My Profile

Search Forums

Advanced Search
All times are GMT -8. The time now is 10:39 PM.


Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.