Jump to:

4873 Posts in 7260 Topics by 1471 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Silverstripe in www root

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: 1465 Views
  • Krille Brocket
    Avatar
    Community Member
    10 Posts

    Silverstripe in www root Link to this post

    Hi, i'm installing silverstripe in the \www root and everything works fine but I still want users to be able to reach old site content in the form http:<my_domain>/<url>, because every request now i served directly to silverstripe I get a Page Not Found on such requests. Must I use RewriteCond/RewriteRule for each and every url that arent part of silverstripe?

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Silverstripe in www root Link to this post

    You've got two options:

    1. Install SS in a separate directory. e.g wwwroot/mywebsite
    2. Add individual entries into the .htaccess file to ignore rewriting for specific URLs. e.g.:

    RewriteCond %{REQUEST_URI} !/blog

    Sean

  • lerni
    Avatar
    Community Member
    80 Posts

    Re: Silverstripe in www root Link to this post

    hi

    i guess you have a subdirectory with the content of the old site (e.g. "old"). if so you could add this rule to your .htaccess. make sure you add it before the silverstripe rules.

    RewriteRule ^(old)($|/) - [L]

    ohps sean was faster :-|

    lukas

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Silverstripe in www root Link to this post

    lerni: Good idea. Didn't consider that - but it's a good way to go considering the SS site would contain the new content.

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