开发者

how to move a site with absolute references to a subdirectory

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜