Benim Biçembentte mutlak url HAVA. http://localhost/images/myimage.jpg.
Ayrıca, aşağıdaki sabit bir yapılandırma sınıfı
const SITE_ROOT = 'http://localhost/images'
On php pages i write
config::SITE_ROOT . "/myimage.jpg"
so when i move the site to the production server i can change the site root in one central location.
Is there any way to do this in my style sheet without putting it in the page? Relative url's are not an option because i am using mod rewrites and relative url's don't work.