Solved

Changing my homepage file extension - Google issues?

Posted on 2006-11-06
7
196 Views
Last Modified: 2010-04-27
Hi

This is 2 questions really.

I am upgrading my very static website to something more dynamic.

Currently I have an index.html, plus quite a lot of static services pages which rank OK in Google.

I have installed a blog in a /blog directory and want to show recent posts on my homepage, which would mean changing from index.html, to index.php.

So question 1 is would this affect my Page Rank (currently 4) of the homepage/damage my Google listing/ranking

Second question, is whether adding a .htaccess file to re-write the URLs of my static site would also be bad, e.g changing from

domain.com/my-service-page-1.htm

to

domain.com/my-service-page-1

Do these old URLs (domain.com/my-service-page-1.htm) then become broken i.e. give a 404 error?

Thanks alot
0
Comment
Question by:reedy2k
7 Comments
 
LVL 7

Accepted Solution

by:
ashishjvw earned 50 total points
ID: 17887331
1. Why would you want to change from
domain.com/my-service-page-1.htm

to

domain.com/my-service-page-1

2. You can also use html/javascript to show recent posts.


Regards,
ASHISH T.
0
 
LVL 33

Assisted Solution

by:humeniuk
humeniuk earned 50 total points
ID: 17889870
When rewriting your URLs, you can set up a rule that will rewrite the old version to the new version and return a 301 http code (ie. permanent redirect).  This is the best way to go from an SEO perspective.

However, I agree with Ashish.  Why change my-service-page-1.htm to my-service-page-1?  The idea behind rewriting URLs is to make your URLs more user friendly and there is no benefit in this example.
0
 

Author Comment

by:reedy2k
ID: 17890387
OK fair enough, the main crux of this question was in changing the homepage file extension anyway
0
 
LVL 16

Assisted Solution

by:HackneyCab
HackneyCab earned 50 total points
ID: 17903149
If you want every page to be parsed by PHP from now on (to allow blog entries on every page, for instance) you can add this line to your .htaccess file:

AddType application/x-httpd-php .html

Which tells Apache to use PHP to process all files that end with .html instead of just serving them.

If you only want index.html to be processed by PHP, then you can use a Files block, like this:

<Files index.html>
AddType application/x-httpd-php .html
</Files>

which would only affect index.html and leave the rest of your HTML files as normal.

These methods should both allow PHP processing without affecting your URLs at all. So Google won't be affected. (Unless you write really bad PHP.)
0
 
LVL 33

Expert Comment

by:humeniuk
ID: 18302261
Suggest split between ashishjvw humeniuk & HackneyCab
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Every business owner understands the significance of online customer reviews and the impact it can have on sales and revenues. With technology advancing at such a rapid pace, getting online reviews has never been easier, especially when many regions…
Marketing can be an uncomfortable undertaking, especially if your material is technology based. Luckily, we’ve compiled some simple and (relatively) painless tips to put an end to your trepidation and start your path to success.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now