21309 Posts in 5738 Topics by 2603 members
General Questions
SilverStripe Forums » General Questions » SOLVED - base url and home page link both have subfolder
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 1077 Views |
-
SOLVED - base url and home page link both have subfolder

24 August 2010 at 5:30pm Last edited: 24 August 2010 8:10pm
Hi,
I have a site installed using installer in a subfolder.
The base url is<base href="http://localhost/silverstripe/"></base>
But it seems that the subfolder is added onto the navigation urls as well?
For example the home link referes to<a href="/silverstripe/">Home</a>
I there any way to get rid of the subfolder in the nav links... I have tried changing the poath in the _config but doesnt seem to do anything.
Mike
-
Re: SOLVED - base url and home page link both have subfolder

24 August 2010 at 8:11pm
Fixed it using
Director::setBaseURL('http://localhost/silverstripe/');
In config
| 1077 Views | ||
|
Page:
1
|
Go to Top |

