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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

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

Website URL without containing silverstripe


Go to End


5 Posts   1325 Views

Avatar
Bernie

Community Member, 1 Post

6 January 2012 at 9:23am

Hi,

Probably the worlds easiest question but I just can't figure it out. How do I install Silverstripe so that my pages point to my base URL and don't contain silverstripe

e.g. I want www.mysite.com instead of www.mysite.com/silverstripe

Thanks in advance!

Avatar
Sticks

Community Member, 31 Posts

6 January 2012 at 2:55pm

Edited: 11/01/2012 1:55pm

Sounds like you have SilverStripe installed in a sub-directory. Moving all the files from your www/silverstripe/ folder to your www/ folder on the server should do the trick.

Avatar
renz

Community Member, 2 Posts

11 January 2012 at 6:05am

Actually, I'm with Bernie on this... I have other subdomains that have their own folders on my domain and want to keep SilverStripe in a separate folder, but have the URL for my main "www" domain point to that folder easily... There has to be an easy way to do this and I'll be searching the forum further, but in case I don't find anything (and this post was right up front on the topic), what's the "real" answer to Bernie's query (no offence to Sticks' response)?

Avatar
Sticks

Community Member, 31 Posts

11 January 2012 at 2:02pm

You could try creating a .htaccess file in your www directory and using mod_rewrite to direct requests to the SilverStripe folder. You might also need to edit the .htaccess file in the SilverStripe directory to make sure it keeps the '/silverstripe' out of the address bar.

This should help get you started: http://stackoverflow.com/questions/990392/htaccess-rewrite-to-redirect-root-url-to-subdirectory

Avatar
renz

Community Member, 2 Posts

12 January 2012 at 4:51am

Edited: 12/01/2012 4:53am

Thanks Sticks (and thanks for not taking offence to my first post, it's always appreciated when someone helps out and your solution in your first post may have worked out of the box for Bernie)... that seems more thorough than other .htaccess "solutions" I came across that didn't work for me because of my other subdirectories that point to subdomains (they stopped working when the SilverStripe subdirectory started working)...

Should get a chance to test this later...