Hello!
What and where should I do to change site's url's after moving it from internet to localhost?
I have the files and db dump from site that works fine in Internet (let's say www.site.com). I imported it to xampp, changed config and paths and .htaccess according to mans. I recieve homepage on localhost/site and can access to /manager. But all site's links and css and image url's are leading to www.site.com. If I manually change site url's in header.Chunks it looses css and images - the url's are leading ti non-existing directory.
I spent half a day to solve it, didn't find the solution on the Internet.
There may also be a rule redirecting the none www to www.mydomain.com, if there is comment it out
-
MODX Staff
- 2,502 Posts
Typically the best thing to do is have the following for portability as well as for function in different contexts:
<head>
<base href="[[++site_url]]">
</head>
This is normally changed in your template or the chunk for the template top.
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub