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.

General Questions /

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

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

SOLVED - base url and home page link both have subfolder


Reply


2 Posts   1838 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 :)