Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

SOLVED - base url and home page link both have subfolder


Go to End


2 Posts   2719 Views

Avatar
wainui

Community Member, 56 Posts

24 August 2010 at 5:30pm

Edited: 24/08/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

Avatar
wainui

Community Member, 56 Posts

24 August 2010 at 8:11pm

Fixed it using

 Director::setBaseURL('http://localhost/silverstripe/');

In config :)