|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
Shouldn't cause any problems but I would recommend you also do a .htaccess rewrite rule to make index.php appear as index.html
|
|
#3
|
|||
|
|||
|
Quote:
Yea I was thinking the same. Thanks for the feedback |
|
#4
|
||||
|
||||
|
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?
|
|
#5
|
||||
|
||||
|
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. |
|
#6
|
|||
|
|||
|
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. |
|
#7
|
||||
|
||||
|
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. |
![]() |
| Viewing: SEO Chat Forums > Other > HTML Coding > HTML to PHP SEO question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|