Hey there,
my revo-installation is within a folder called /cms/.
Now, I use virtual hosts and rewrite rules to strip this directory from all urls entered. However, when I am logged into the manager and click onto a preview site I always get the urls with /cms/. Moreover, all the generated links have /cms/ in it.
I changed the site_url for my context so that it disposes of the /cms/-thing. I do not know how MODx generates those links. Well, I know makeUrl, but I don't know how to influence that...
Help is very much appreciated.
Thanks
-
☆ A M B ☆
- 2,475 Posts
Yeah, I think maybe you should edit this in your VirtualHosts directive to use the /path/to/cms/ as your document root... that way you'd bypass all of this.
If you can't make the change in the VirtualHosts, you have to update your .htaccess. I can't tell you exactly what you need to change in your rewrite rule, but there is a way to do this -- it usually takes me a while to figure out the necessary syntax.