Jump to:

4952 Posts in 14338 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Website URL without containing silverstripe

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

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

Page: 1
Go to End
Author Topic: 661 Views
  • Bernie
    Avatar
    Community Member
    1 Post

    Website URL without containing silverstripe Link to this post

    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!

  • Sticks
    Avatar
    Community Member
    29 Posts

    Re: Website URL without containing silverstripe Link to this post

    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.

  • renz
    Avatar
    Community Member
    2 Posts

    Re: Website URL without containing silverstripe Link to this post

    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)?

  • Sticks
    Avatar
    Community Member
    29 Posts

    Re: Website URL without containing silverstripe Link to this post

    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

  • renz
    Avatar
    Community Member
    2 Posts

    Re: Website URL without containing silverstripe Link to this post

    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...

    661 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.