Jump to content

PAGE RANKINGS from HTML to PHP


entice

Recommended Posts

I have redesigned a clients hideous website... and built the website as I normally do, to use PHP includes, this then changing the file name e.g. index.html to index.php

 

they were not happy with this saying they will lose 3 months of indexed pages on google! Thus losing positions on google...

 

I thought about includes, SSI, but don't the pages have to SHTML for this anyway? For this to work...

 

so my real question is, a way round not losing the .HTML extension so I can use includes or some words to ease their fears about page ranking...

 

if more info is needed leme know!

 

cheers

Link to comment
https://forums.phpfreaks.com/topic/106935-page-rankings-from-html-to-php/
Share on other sites

You can have it so that it will put html pages through the php parser.

You could have an iframe that opens up the new index.php from inside index.html

You could have a link redirecting users to the new page

 

These are just 3 options off of the top of my head, they are not necessarily the best solutions but I'm sure they'll help get the idea ball rolling.

If that doesn't work, this will:

 

RewriteEngine on
RewriteBase /
RewriteRule ^([^.]+)\.html$ $1.php [L]

 

Put this in your .htaccess file in the top directory. Anytime someone accesses ____.html, it will show up in the address bar as _____.html, but the actual contents will be the ______.php file you have encoded. Search engines cannot even tell that the page isn't really _____.html, and so the search ranking are not lost at all.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.