Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Is there any benefit in making the paths of content images match that of the page?

E.g. if the path of my page is

www.example.com/something/my-latest-article

is it better to have content images with the URL such as

www.example.com/something/my-latest-article/content-image-1.jpg

or

www.example.com/images/content-image-1.jpg
share|improve this question
add comment

2 Answers 2

up vote 1 down vote accepted

There is no advantage whatsoever.

Well, there may be a very small advantage regarding loading time if you page has many images, since you would be saving some KB on text. Although, there would be a slight more work to do on the server/browser side.

Each relative link has to be converted to a full canonical link that identifies a resource, so a relative link is just "half" an identifier that has to be completed by somebody.

A good practice is to have all your links complete. But as mentioned before if you don't do that, everything is going to work just fine.

share|improve this answer
add comment

I personally don't think this is very important at all. This seems like more of a architectural issue or problem depending on your site and is very unlikely to effect the SEO of your website. Here is a list of issues that could effect your website with regards to images.

  • Images are downloading the content from multiple different websites thus increasing the number of resources to download.
  • Images should be optimised for web and not just standard 72 dpi images. This will compress the images reducing the size of the resource been downloaded.
  • Roll over images. Instead of using 2 images try using css sprites with just a single image. This also reduces the amount of resources been downloaded.
  • Only use an image that is the right size. Using an image that is 2000x3000 in a space that is 200 x 300 is taking up probably greater then 10 x more space then is needed slowing your website down.
  • Use alt tags with all of your images and it is advised to keep the image close to text and headers that best describe the image or that is relevant to the image.
  • If possible use a CDN not just for images but for all static content. This will help to optimise your site not only for 1 country (which the above will only really do unless you have multiple servers serving the content) but for many other countries aswel.

Things that may help your sites performance.

  • switch on persistant connections (may only be available if you have a dedicated server as this can increase server load)

the example below but this will only work if it has been activated in the httpd.conf file

## Keeps One Connection Open For HTTP ##
<ifModule mod_headers.c>
Header set Connection keep-alive
</ifModule>
## END keep-alive ##
  • enable caching in your htaccess file

example below

## expire ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 weeks"
ExpiresByType image/jpeg "access 1 weeks"
ExpiresByType image/gif "access 1 weeks"
ExpiresByType image/png "access 1 weeks"
ExpiresByType text/css "access 1 weeks"
ExpiresByType application/pdf "access 1 weeks"
ExpiresByType text/x-javascript "access 1 weeks"
ExpiresByType application/x-shockwave-flash "access 1 weeks"
ExpiresByType image/x-icon "access 1 weeks"
ExpiresDefault "access 1 weeks"
</IfModule>
## End expire ##

Quickly explaining the above. The persistant connections will allow more then 1 http connection from your website to download the content. The number of connections depend on the setup of your httpd.conf file. Obveously the more connections the fast the content will download as instead of downloading a single item at a time it could be downloading 5 things at a time.

I have probably missed something but hope it helps.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.