Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Suppose I wanted my website to have

www.aaa.com/bbbb www.aaa.com/th/bbbb

The first one is the default language while second one is in Thai. I think I should prepared my folder structure like this :

root -bbbb --index.html --images -th --bbbb ---index.html

Now that I copied the index.html file from /bbbbfolder into /th/bbbb folder and finished translate it, I realized that all path for images like in <img src= or url(... of CSS has been broken because I did not copied the whole bbbb/images folder with it.

Instead of rewriting every url to go back one step and look for images in /bbbb folder (that is, prefix every URL with ../bbbb/) is there more practical way? Because the translated page uses nearly identical images with original ones.

Also for the solution presented, would that impact the SEO of images in any way?

share|improve this question
Check webmasters.stackexchange.com/questions/56840/… too – JVerstry Aug 16 '14 at 20:50
up vote 2 down vote accepted

Yes, there is a more practical way. Use relative paths everywhere. Instead of setting your image path to src='www.aaa.com/images/myimage.jpg', set it to src='/images/myimage.jpg' instead.

Using relative path has no impact on SEO. It is neutral.

share|improve this answer
By relative path did you mean absolute path? I just realized that all of my URLs was like images/myimage.jpg (relative path from current file) instead of /images/myimage.jpg (absolute path from root). Adding a single slash now let me copied the file to anywhere. Thanks. – 5argon Aug 16 '14 at 13:00
No, an absolue path is with the domain name (www.aaa.com). What you had is a relative path to the current directory. With a leading '/', it is a relative path to the root. Cheers! – JVerstry Aug 16 '14 at 13:05

Your Answer


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.