+ Reply to Thread
Results 1 to 4 of 4

Thread: Subdomain and cache help

  1. #1
    davejh is offline x10Hosting Member davejh is an unknown quantity at this point
    Join Date
    May 2009
    Location
    UK, though In Ecuador as short term missionary for three months right now.
    Posts
    4

    Subdomain and cache help

    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

  2. #2
    Twinkie is offline Banned Twinkie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Ft. Lauderdale, Florida
    Posts
    1,389

    Re: Subdomain and cache help

    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 by Twinkie; 05-28-2009 at 03:26 PM.

  3. #3
    ejweb is offline x10Hosting Member ejweb is an unknown quantity at this point
    Join Date
    Dec 2008
    Location
    Washington State
    Posts
    64

    Re: Subdomain and cache help

    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.

  4. #4
    davejh is offline x10Hosting Member davejh is an unknown quantity at this point
    Join Date
    May 2009
    Location
    UK, though In Ecuador as short term missionary for three months right now.
    Posts
    4

    Re: Subdomain and cache help

    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?

+ Reply to Thread

Similar Threads

  1. subdomain help...
    By imagelinx in forum Free Hosting
    Replies: 4
    Last Post: 04-17-2009, 07:37 AM
  2. Help me, my subdomain dont work
    By madzzkill in forum Free Hosting
    Replies: 1
    Last Post: 05-27-2008, 12:03 AM
  3. Absolut server and subdomain issue
    By holeepassion in forum Free Hosting
    Replies: 5
    Last Post: 05-13-2008, 08:54 AM
  4. subdomain change not taking effect
    By adam4813 in forum Free Hosting
    Replies: 0
    Last Post: 05-09-2008, 11:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers