HTML Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsOtherHTML Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread SEO Chat Forums Sponsor:
  #1  
Old July 11th, 2007, 09:24 AM
havoc havoc is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 50 havoc User rank is Private First Class (20 - 50 Reputation Level)havoc User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 15 h 38 m 22 sec
Reputation Power: 2
HTML to PHP SEO question

Quick question, hoping someone here has some insight on this.

My index page is currently index.html, but in order to use some new functionality, I will be changing it index.php....

My website reads domain(dot)com/ and I do not have it linked anywhere as domain(dot)com/index.html.

Will this present any problems?

Reply With Quote
  #2  
Old July 11th, 2007, 09:44 AM
peterh peterh is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 25 peterh User rank is Lance Corporal (50 - 100 Reputation Level)peterh User rank is Lance Corporal (50 - 100 Reputation Level)peterh User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 1 h 20 m 17 sec
Reputation Power: 0
Shouldn't cause any problems but I would recommend you also do a .htaccess rewrite rule to make index.php appear as index.html

Reply With Quote
  #3  
Old July 11th, 2007, 09:48 AM
havoc havoc is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 50 havoc User rank is Private First Class (20 - 50 Reputation Level)havoc User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 15 h 38 m 22 sec
Reputation Power: 2
Quote:
Originally Posted by peterh
Shouldn't cause any problems but I would recommend you also do a .htaccess rewrite rule to make index.php appear as index.html


Yea I was thinking the same. Thanks for the feedback

Reply With Quote
  #4  
Old July 11th, 2007, 10:01 AM
jperks1985's Avatar
jperks1985 jperks1985 is offline
SEO Monger
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Location: USA
Posts: 322 jperks1985 User rank is Private First Class (20 - 50 Reputation Level)jperks1985 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 3 Days 13 h 30 m 45 sec
Reputation Power: 2
What type of functionality? On my servers I can keep my .html files the same and put php code within. Do you need .php because its shared hosting?

Reply With Quote
  #5  
Old July 11th, 2007, 10:10 AM
tstolber's Avatar
tstolber tstolber is offline
Contributing User
SEO Chat Frequenter (2500 - 2999 posts)
 
Join Date: Jul 2004
Location: Bedfordshire
Posts: 2,573 tstolber User rank is Sergeant (500 - 2000 Reputation Level)tstolber User rank is Sergeant (500 - 2000 Reputation Level)tstolber User rank is Sergeant (500 - 2000 Reputation Level)tstolber User rank is Sergeant (500 - 2000 Reputation Level)tstolber User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 14 h 48 m 28 sec
Reputation Power: 24
Send a message via MSN to tstolber Send a message via Google Talk to tstolber Send a message via Skype to tstolber
Add a ahandler type to your .htaccess file and upload it to your root directory.

Code:
# Tells the server to parse .html files for php
AddType application/x-httpd-php .html


If you so wished you can parse PHP in any file extension

Code:
# Tells the server to parse .coolextension files for php
AddType application/x-httpd-php .coolextension


This is a better solution that redirecting any files because you don't have to change URLs thus you keep all the SERPs and SEO bennefit of that URL. Further more it hides your back end technology which is a small step to securing your site.
__________________
SEO Tutorials for Beginners, SEO News, SEO Testing


Call me on Skype and get SEO advice now - skype name "tstolber"

The Truth about META TAGS

Last edited by tstolber : July 11th, 2007 at 10:12 AM.

Reply With Quote
  #6  
Old July 11th, 2007, 10:58 AM
havoc havoc is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 50 havoc User rank is Private First Class (20 - 50 Reputation Level)havoc User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 15 h 38 m 22 sec
Reputation Power: 2
Nevermind... all I needed to do was add that first code, because now I won't have a reason to actually name any files php. Thanks for all the help.

Last edited by havoc : July 11th, 2007 at 11:06 AM.

Reply With Quote
  #7  
Old July 11th, 2007, 11:03 AM
tstolber's Avatar
tstolber tstolber is offline
Contributing User
SEO Chat Frequenter (2500 - 2999 posts)
 
Join Date: Jul 2004
Location: Bedfordshire
Posts: 2,573 tstolber User rank is Sergeant (500 - 2000 Reputation Level)tstolber User rank is Sergeant (500 - 2000 Reputation Level)tstolber User rank is Sergeant (500 - 2000 Reputation Level)tstolber User rank is Sergeant (500 - 2000 Reputation Level)tstolber User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 14 h 48 m 28 sec
Reputation Power: 24
Send a message via MSN to tstolber Send a message via Google Talk to tstolber Send a message via Skype to tstolber
Yes thats right, you can put the php code into your index.html page

eg

Code:
<html><head><title>Title</title>
</head>
<body>

<?php include("inc/main.php"); ?>

</body>
</html>


The second was just an example of using a different file extension to parse php in.

www.kanoodle.com used to use a .cool extension which was err .cool.

This way you don't need to change any pages links or file structure. Just add the php code to your index page and be done with it.
Comments on this post
havoc agrees: Thank you

Reply With Quote
Reply

Viewing: SEO Chat ForumsOtherHTML Coding > HTML to PHP SEO question


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT