[wp-hackers] Why always absolute paths?
wp-hackers at striderweb.com
Wed Apr 21 12:58:08 UTC 2010
On Apr 21, 2010, at 6:46 AM, Bumbu Alex wrote:
> if you use sef url and you'll give relative path for the image (ex.
> so on page _http://page.com/ you'll have src to _
> you can use such src as /images/top.jpg and for the above examples you'll
> have tha same link _http://page.com/images/top.jpg
> but when somebody will have WP installed in subdirectory, but he will use
> default template, instead of getting
> he will have
??? If WP is installed in a subdirectory, the root path would include the subdirectory. I still don't see the problem with root paths.
I've wondered this myself regarding links to media put on a site with the uploader. Why full URL with the path? If I move domains or something I have to go into the database and change the URLs for all those links.
> so only using absolute path is friendly for all cases
> p.s. when I am doing my templates(for any CMS) I try to include all possible
> images through css, so usually I have no images, or few of them (I am
> speaking about images from template but not from posts)
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers