Subdomain and cache help

davejh

New Member
Messages
4
Reaction score
0
Points
0
I´m not sure this is in the right section, or even what the proper technical terms are but here is my problem and any help would be appreciated.

I have the domain hansfords.net and decided to host this website on dave.hansfords.net, the problem is that every webpage is hidden by the URL dave.hansfords.net and also the .ico image I use doesn´t work under that URL. When accessing through the direct URL that contains X10hosting the .ico file shows up and the pages are differentiated by the /index.html or /comments.html part of the URL. How do I get the icon working and how do I get my website to show http://dave.hansfords.net/index.html?

Also, is there some code I can add to my page to force a cache reload so that when I update the page everyone sees the update. Currently they see the presious instance that is saved in their cache. Thanks
 

Twinkie

Banned
Messages
1,389
Reaction score
12
Points
0
You have to add no-cache meta tags, three to work in all browsers.

Code:
For IE:
<meta http-equiv="Pragma" content="no-cache">

For IE 5:
<meta http-equiv="Expires" content="-1">

I believe for non HTTP/1.1 compliant servers:
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">
If you use AJAX to update your pages, send a random number as a parameter to ensure the page is not cached.

Try clearing your .htaccess file to see if that helps with the url problem. That must be the servers doing.

Add all this code to your page and you should be fine :)
 
Last edited:

ejweb

New Member
Messages
64
Reaction score
0
Points
0
Hi Dave,
It appears you are using "Frames" for your site layout. One of the frame's name is; <frame name="main" src="http://www.dave.x10hosting.com/" scrolling="auto">. Try changing the source from www.dave.x10hosting.com to dave.hansfords.net. Just and FYI: frames are not idea for web site layouts. Use tables and SSI (server-side includes) for ease of updates and layout.

A few META TAGS samples that may help to not cache are;
<meta http-equiv="expires" content="0" />
<meta http-equiv="Pragma" content="no-cache" />
<meta name="validuntil" content="2008-12-31" />

Hope this is helpful.
 

davejh

New Member
Messages
4
Reaction score
0
Points
0
Thanks for the replies. I have little knowledge in html and actually used a template I downloaded from a different site to make my website. Updating it is very slow and repetitive because each page has to be updated with the same sidebar links. I assume there is a way of having the general site layout separate to the actual contents of each individual page so that updating something for all pages can be done only once?

What is an htaccess file? I will add those META lines when I can, I take it they go in the <head> part?
 
Top