| 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).
| 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.
| 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.
| 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.
| 6:06 am on May 24, 2005 (gmt 0)|
That sounds exactly like what I am looking for.
oops. Almost exactly what I'm looking for. Any way to make it show pacific time exclusively?
| 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
| 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.
| 2:54 pm on May 24, 2005 (gmt 0)|
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?
| 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.
| 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:
The trailing / is important; always include it.