htaccess question

I'm having a problem indirectly related zenphoto. I have zenphoto up and running a directory called gallery. In this same directory I have a page that uses flash to display the photos from zenphoto using a dynamic xml file. The problem I'm having is with the url. If I use www .mydomain.com/gallery/flashpage.html (space deliberate to avoid linkage) it works fine. However, if I eliminate the www and just have mydomain.com/gallery/flashpage.html the page loads but there's no flash.

Is this problem because of the rewrites in the htaccess for that directory?

On a similar note, in the root of my site I have in the htaccess a rewrite rule to force the www which works everywhere but in the gallery directory (mydomain.com/gallery/ still works and doesn't redirect).

Any help or information is much appreciated. Thanks

Comments

  • acrylian Administrator, Developer
    This is actually not really a Zenphoto problem but probably something related to the script that generates the xml for flash use. Perhaps this generates fixed links with the "www" so it is confused without it. I don't think it is related to the htaccess file.
  • Thanks acrylian, I realize it's not really a zenphoto issue but was hoping someone could help me. I don't believe it's a script issue because I've modified it and can produce links with both www and without. The flash will retrieve both links but only if flash page itself is prepended www. strange.

    Is there a way to force the www in the htaccess used by zenphoto? I've tried adding the rewrites I have in my root htaccess to the htaccess of the gallery directory but it doesn't seem to work (zenphoto then fails).
  • I've solved my flash problem, it was in the fla itself.

    I would still like to know how to force www before the domain in the zenphoto htaccess (which seems to overrule my root htaccess which does so).
Sign In or Register to comment.