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

Silverstripe in www root


Go to End


4 Posts   2508 Views

Avatar
Krille Brocket

Community Member, 10 Posts

9 March 2010 at 8:16pm

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?

Avatar
Sean

Forum Moderator, 922 Posts

9 March 2010 at 9:15pm

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

Avatar
lerni

Community Member, 81 Posts

9 March 2010 at 9:21pm

Edited: 09/03/2010 9:22pm

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

Avatar
Sean

Forum Moderator, 922 Posts

9 March 2010 at 9:31pm

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