homepage Welcome to WebmasterWorld Guest from 54.161.246.212
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Google / Google SEO News and Discussion
Forum Library, Charter, Moderators: Robert Charlton & aakk9999 & brotherhood of lan & goodroi

Google SEO News and Discussion Forum

    
Changing index page extension
will this hurt in google.
Powdork

WebmasterWorld Senior Member powdork us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 29533 posted 10:11 pm on May 21, 2005 (gmt 0)

Hello all,
I want to add a server side include to my homepage. Iam finding what i want but am told (perhaps wrongly) that I need to have an .shtml or .shtm file extension for this to work. I would only be making the change to my index page. So here are my questions.
1. Can I do it without changing the extension. It is currently index.html
2. Does Google consider this to be a name change at all. For instance does Goggle consider my index page to be www.example.com or does it consider it to be www.mysite.com/index.html
Thanks

[edited by: ciml at 10:50 am (utc) on May 23, 2005]
[edit reason] Examplified [/edit]

 

Powdork

WebmasterWorld Senior Member powdork us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 29533 posted 5:12 am on May 24, 2005 (gmt 0)

A bump and more details. I want to add a time stamp to my home page in the form of
<!--#ECHO var="DATE_LOCAL" -->
Also, I would rather have everyone see my local time rather than their local time (it's a travel destination).

walkman



 
Msg#: 29533 posted 5:24 am on May 24, 2005 (gmt 0)

I would link just to www.domain.com/ no index.ext at all. This way, you can change the extension at anytime.

Powdork

WebmasterWorld Senior Member powdork us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 29533 posted 5:31 am on May 24, 2005 (gmt 0)

I do that with all absolute links. That's why I am thinking it won't matter, but I sure as heck don't want to change the name of my index page if it does matter.

WebWalla

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 29533 posted 5:58 am on May 24, 2005 (gmt 0)

If you have an Apache server, add this line to .htaccess ...


AddHandler server-parsed .htm .html

You can then use server side includes without changing the file extension.

Powdork

WebmasterWorld Senior Member powdork us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 29533 posted 6:06 am on May 24, 2005 (gmt 0)

That sounds exactly like what I am looking for.
Thank You

oops. Almost exactly what I'm looking for. Any way to make it show pacific time exclusively?

Powdork

WebmasterWorld Senior Member powdork us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 29533 posted 6:09 am on May 24, 2005 (gmt 0)

And another question. I do have an .htaccess file, does it matter where I put this? i.e. after or before the Rewrite rules

WebWalla

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 29533 posted 2:31 pm on May 24, 2005 (gmt 0)

This thread should probably be now moved to the Apache forum [webmasterworld.com] because I'm certainly no expert but my understanding is that you can use one of two variables ...

DATE_GMT - The current date in Greenwich Mean Time.
DATE_LOCAL - The current date in the local time zone.

If you want some other time zone you'll probably have to write a short script.

Regarding where you should put the AddHandler line, I have it as the first line but I don't think it's important.

Powdork

WebmasterWorld Senior Member powdork us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 29533 posted 2:54 pm on May 24, 2005 (gmt 0)

Thanks WebWalla,
The AddHandler works fine added after my rewrite rules.
This probably could easily be moved to apache forum since the Google part has been AddHandled.;)
I'm guessing it will be something to the effect of
DATE_GMT(-9:00) but am not sure. I guess I'll try and see.

Are there any security issues with what we've done?

WebWalla

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 29533 posted 3:01 pm on May 24, 2005 (gmt 0)

Again, I have to say I'm no expert but I think you've probably improved security.

This is because I believe documents with .shtml extensions have more security issues.

g1smd

WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 29533 posted 7:02 pm on May 24, 2005 (gmt 0)

If you link to an index page then use one of these formats, so that the issue of changing the actual page name does not affect your links in any way at all:

href="/"
href="/folder/"
href="http://www.domain.com/"
href="http://www.domain.com/folder/"

The trailing / is important; always include it.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google SEO News and Discussion
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved