Jump to content

what extension of website pages .html or .php


martins

Recommended Posts

Hi - I'm new in PHP town so if you could kindly show me the way to the palace of wisdom, haha

 

I'm wondering what is 'better' (I know it is not an appropriate word):

 

1. to create a website with index.php and other pages .php as well

2. to create .html pages (index.html, etc.) with php code within php tags?

 

That's of course that the website will be using php and accessing mysql.

 

Sorry, it's a silly question, but everyone has once been a newbie.

 

TIA

Link to comment
Share on other sites

I've read in the past that .html pages get a better page rank thank .php pages. I don't know if it's still true - It was quite a while back that I read that (about 4-5 years ago now).

 

One advantage to using .html extensions is that people won't know what language you are using to power your site. That adds a tiny bit of security (only a tiny bit mind you).

 

Most servers however won't parse PHP in .html documents by default. You will need to either change the server settings, or else add some code to your .htaccess file to do this (google 'parsing .html as PHP' or something like that).

Link to comment
Share on other sites

Whatever you read about SEO 4-5 years ago is probably bollocks right now. And remember that with tools like mod_rewrite you can hide all your extensions, or get even further and change .php to .asp (I've seen one site that claimed to be running .NET port of WordPress ;) )

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.