开发者

how to move a site with absolute references to a subdirectory

开发者 https://www.devze.com 2023-04-03 02:59 出处:网络
I inherit开发者_JS百科ed a site with absolute references, including absolute pointers to images within the CSS, such as background: url(\"/images/logo.png\")

I inherit开发者_JS百科ed a site with absolute references, including absolute pointers to images within the CSS, such as background: url("/images/logo.png")

I have the need to run the site in the development environment from a sub-directory. Is there a way I can do something magical and have the site run properly even though the references are absolute

so instead of running within http://mySite.com it has to run in

http://mydevServer/subDirectory

I'm running LAMP

thanks


So it turns out the best way is to use Apache Virtual Hosts to go directly to the subdirectory.

0

精彩评论

暂无评论...
验证码 换一张
取 消