I have installed two copies of silverstripe in a hosted account. My main .htaccess file has rewrite rules like:
RewriteCond %{HTTP_HOST} ^(www\.)?somesite\..* [OR]
RewriteCond %{HTTP_HOST} ^$
RewriteCond %{REQUEST_URI} !^/cms.somesite/
RewriteRule (.*) /cms.somesite/$1 [L]
#
RewriteCond %{HTTP_HOST} ^(www\.)?othersite\..*
RewriteCond %{REQUEST_URI} !^/cms.othersite/
RewriteRule (.*) /cms.othersite/$1 [L]
This works fine, only all links point to the subdirs (e.g. http://somesite.net/cms.somesite/about-us/)
How can I teach silverstripe to generate links to http://somesite/about-us/ ?
I think it could be done in the main silverstripe .htaccess rewrite rules, but I'd rather not touch that. Is there
some way to force a base url?
thanks, Mathias