jrahma;11032171 wrote:using absolute paths means I have to change it from localhost to mydomain.com everytime I upload from and to localhost/remote host.
No it doesn't. "/path/to/foo.bar" will have the same 'path' component no matter which host you're using.
jrahma;11032171 wrote:using Relative Paths is better and that's what I am doing..
Right... but since you seem think URLs should be "pretty" for some reason, you're going to have to make sure the "relative" path will be interpreted correctly by your browser.