The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.


Results 1 to 8 of 8

Thread: www. vs. no www.

  1. #1

    www. vs. no www.

    Hey all,

    Finishing up a site at a client's website.

    The problem is, if you type in http://weldco.ca, the images in the header (loaded by xml) dont work.

    Ive encountered this problem before with my school's site, http://www.meisoc.com/flash1.html vs. http://meisoc.com/flash1.html

    Anyone know why this is and how to rectify this problem?

    Thank you very much!
    ----- Blargh!!!

  2. #2
    I've had this problem as well with a site I did. Apparantly Flash doesn't allow you to access resources on the www subdomain from the no-www subdomain, and vice-versa. So what I did was use only relative paths. The best way I think is to create a global variable that holds the URL prefix. That way, you can set that variable to the absolute site URL while you develop the site, and for the live version all you need to do is make the variable empty again, so that it'll use relative paths again.
    Wait, what?

  3. #3
    Awesome, thank you.

    It works perfectly.

    But before, I was fooling around with some scripts and some .htaccess stuff, and I think I screwed something up.

    weldco.ca and www.weldco.ca don't work, whereas weldco.ca/index.html and www.weldco.ca/index.html work fine.

    (The flash is not being displayed without the index.html).

    Anyone know why?

    I have since deleted the scripts and .htaccess files.
    Last edited by Icy Penguin; January 13th, 2007 at 04:05 PM.
    ----- Blargh!!!

  4. #4
    Have you tried clearing your cache ?
    Wait, what?

  5. #5
    Google, and I, will be happy if you simply redirect (304 is best) all traffic from the www one to the no-www one. This can easily be done with a simple mod_rewrite rule.


    K-Emmys-06: Best Footer; and K-Emmys-06: Most Active Member

  6. #6
    Never mind, all works now (I have no idea why - but I think I will just leave it alone now).

    Thank you
    ----- Blargh!!!

  7. #7
    Quote Originally Posted by nokrev View Post
    Google, and I, will be happy if you simply redirect (304 is best) all traffic from the www one to the no-www one. This can easily be done with a simple mod_rewrite rule.
    can you show how to accomplish this?

  8. #8
    Check out this thread I just found: http://www.go4expert.com/forums/showthread.php?t=872


    K-Emmys-06: Best Footer; and K-Emmys-06: Most Active Member

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012