Google Answers Logo
View Question
 
Q: SSI : index.shtml pages vs. index.html ( Answered 5 out of 5 stars,   1 Comment )
Question  
Subject: SSI : index.shtml pages vs. index.html
Category: Computers > Internet
Asked by: till-ga
List Price: $5.00
Posted: 08 Sep 2004 03:02 PDT
Expires: 08 Oct 2004 03:02 PDT
Question ID: 398290
At present I have an index.html page with links to other pages of my
website as usual. As I want to include automatic changing of some
elements (pictures) on the index page when it is reloaded I want to
use meta refresh in my index.html to open a index.shtml page that will
contain SSI statements to load the content.
Will  G o o g l e still list my index.html page or will this be "punished" ?
Or should I replace my index.html by the index.shtml page to avoid this ?
Answer  
Subject: Re: SSI : index.shtml pages vs. index.html
Answered By: larre-ga on 08 Sep 2004 14:32 PDT
Rated:5 out of 5 stars
 
Hullo, Till,

In the eyes of a search engine spider, it may be impossible to tell
the difference between a legitimate "change" of suffix to .shtml, and
a doorway or cloaked page. It's recommended to use a 10 second delay
on the META refresh, with advertisement of the new URL as a "we're
moving" and a clear text link pointing to the new page, to avoid any
possible suggestion of impropriety. The Webmaster Quality Guidelines
specify "Don't employ cloaking or sneaky redirects." The META refresh
has become associated with sneaky redirects, therefore, it's best not
to use it, even if your intentions are pure.

There -is- a "legal" way to avoid the problem. From the Webmaster Guidelines:

" ... there are steps you can take to make sure your transition is a
smooth one. Google listings are based in part on our ability to find
you from links on other sites. To preserve your rank, you will want to
inform others who link to you of your change of address. One way to
find out who is linking to you is to try a link search. Enter
"link:[your full URL]" into the Google search box. You may not find
every page that links to you with this method, but it should help you
begin redirecting the links leading to your site. (Please note: we do
not serve link queries for all of the sites in our index, so this may
not produce any results for your site.) Once your new site is live,
you may wish to place a permanent redirect (using a "301" code in HTTP
headers) on your old site to inform visitors and search engines that
your site has moved."


Create a 301 HTTP Header
----------------------------------------------------------------------

Assuming a ?NIX box, use the .htaccess file to create a 301 redirect.
If you already have an .htaccess file, simply append the redirects. If
not, you can create it as a textfile in Notepad. Don't forget the . at
the beginning. There is no extension on the filename .htaccess is all
and everything.

One or two redirects can be handled with a straight 301 command, e.g.:

Redirect 301 index.html http://www.yourdomain.com/index.shtml

In individual redirects, always specify the full URL in the "to"
portion of the Apache statement.

If you're doing over all your pages, you might wish to use the
RedirectMatch command, e.g.:

RedirectMatch 301 (.*)\html$ http://www.yourdomain.com$1.shtml


Further Reading
----------------------------------------------------------------------

Redirect Methods
http://www.highrankings.com/forum/index.php?showtopic=5644

.htaccess Tutorial
http://www.hostpronto.com/article/9/3

An Introduction to Redirecting URLs on an Apache Server
(May require free registration)
http://www.webmasterworld.com/forum92/82.htm



I hope this helps, Till. Please feel free to ask if you need any clarification. 

larre


Answer Strategy
---------------------------------------------------------------------

Bookmarks, personal knowledge, search terms:

redirectmatch OR redirect 301 tutorial
till-ga rated this answer:5 out of 5 stars and gave an additional tip of: $5.00
Thank you very much larre for the very clear answer.

Comments  
Subject: Re: SSI : index.shtml pages vs. index.html
From: larre-ga on 09 Sep 2004 09:13 PDT
 
You're quite welcome! Thanks for Stars and Tip. ---l

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy