[Pro] Images not displaying in subdomain

I’m working on a redesign of a site. I’ve created a subdomain to work behind the scenes, but when I use the subdomain to access the site, the images don’t load. When I use the domain name with the folder after it, it loads just fine. Why?

Subdomain: http://live.bellevuerotary.net/

With folder following URL: http://www.bellevuerotary.net/live/

I’ve republished everything, the paths are all relative, and the images are definitely online. I don’t understand it.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

What happens if you type in a known path to a file in your browser?

http://live.example.com/Resources/foo.jpg

(Obviously adjust for your real resource path.) What happens then? Does this problem travel if you try using another computer, or one of the browser test services like NetRenderer?

I’ve used a couple of different hosting providers who offer this service (any folder in your web root becomes a subdomain). It usually works completely transparently.

The only other thing I would check is whether you are making this folder in Freeway or not. If you added a folder in your Sites pane of Freeway called live, and then moved all of your pages into that, and then uploaded, then I can imagine a case where this would not work. Freeway may move the pages, but simply create relative links to the original Resources folder in the site root:

img src="../Resources/foo.jpg

…rather than moving the images. If you make the change (to upload into live/) in the Document Setup dialog instead, adding the /live part on to the end of the path there, and move all the pages back into the root, then this will not happen, and any images will be properly linked.

Walter

On Feb 18, 2012, at 11:48 AM, Robin Stark wrote:

I’m working on a redesign of a site. I’ve created a subdomain to work behind the scenes, but when I use the subdomain to access the site, the images don’t load. When I use the domain name with the folder after it, it loads just fine. Why?

Subdomain: http://live.bellevuerotary.net/

With folder following URL: http://www.bellevuerotary.net/live/

I’ve republished everything, the paths are all relative, and the images are definitely online. I don’t understand it.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

When I type in a direct link to an image in the subdomain (http://live.bellevuerotary.net/Resources/nepal.jpeg), I get an error message:

Forbidden
You don’t have permission to access /Resources/nepal.jpeg on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

When I load the subdomain on my iPad, the same thing happens — no images.

I’m using Cpanel, and normally, in the past, anyway, I have been able to create subdomains and use them with no problem. It is just another folder in the root folder.

I didn’t create the folder in Freeway. I’m treating it as it’s own site. The only thing I’m doing differently using ExpanDrive for uploading, not FW’s SFTP. So, I just tried to upload using FW’s SFTP and I get an error message that says: “Cannot complete upload because the peer’s SSL certificate or SSH MDS fingerprint is not OK.”


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Filing this under the “Learn something new every day” category. As it turns out, I have hotlink protection enabled under the security settings in Cpanel, and I had to add the subdomain to it.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Wow, I would never have guessed that one. Odd feature.

Walter

On Feb 18, 2012, at 3:21 PM, Robin Stark wrote:

Filing this under the “Learn something new every day” category. As it turns out, I have hotlink protection enabled under the security settings in Cpanel, and I had to add the subdomain to it.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Me either. I didn’t even know it was there, but the tech support person asked if I had it enabled and I said, pretty much,“Huh?” Looked in there, and lo and behold, there it was.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options