homepage Welcome to WebmasterWorld Guest from 54.226.168.96
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Accredited PayPal World Seller

Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
Forum Library, Charter, Moderators: goodroi

Sitemaps, Meta Data, and robots.txt Forum

    
sitemap for images on subdomain
AlexB77




msg:4324540
 12:57 pm on Jun 10, 2011 (gmt 0)

Hi,

I have created a images.mysite.com subdomain, where I only have one directory /myimages/, where I've placed all images that are served on my main www.mysite.com site.

1. I am trying to create an image sitemap for google
2. How to disallow an access to any other directory on the subdomain including main directory that in fact does not contain an index file.

I have seen this on some sites, when you try to access any directory including main and directory where images are located, you'll get an error like the one below, but you can still access an individual images on the subdomain. In my case I always get a server response 403 instead.

This XML file does not appear to have any style information associated with it. The document tree is shown below.

<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>2ABA2C1E5D16188F</RequestId><HostId>xan2jjFKn76U+m0+beCQA6USWvp1tVMlX38QUdbLgJGxAzZADZ9qCAeLKzMzuuEf</HostId></Error>


I am not a big pro of an xml so if you guys can think of anything that can be done or used I would really appreciate if you talk to me as if you would talk to a 5 year old :-)

 

phranque




msg:4324772
 9:44 pm on Jun 10, 2011 (gmt 0)

what type of server are you on?

In my case I always get a server response 403 instead.

only when you request a directory or also for image requests?

what response would you prefer for a directory request that does not contain an index file?

AlexB77




msg:4324789
 10:53 pm on Jun 10, 2011 (gmt 0)

Thanks for your reply,

I am on Apache. 403 response only for request of directory no images are fine.

I would prefer to get same "access denied" as I have shown in my previous post for any directory that does not contain an index file.

Thanks for your help in advance

phranque




msg:4324904
 6:50 am on Jun 11, 2011 (gmt 0)

In my case I always get a server response 403 instead.


403 should be the response you get when you request a directory in which no DirectoryIndex has been specified or the default directory index document does not exist and "Options Indexes" has not been specified.

403 actually means Forbidden:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4 [w3.org]

i assume that's what you mean by "access denied".

i would also assume that the xml document you are getting in response to your "Forbidden" request is a custom ErrorDocument:
http://httpd.apache.org/docs/2.0/mod/core.html#errordocument [httpd.apache.org]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved