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.

General Questions /

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

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

Pages not affected by SS in the subfolder?


Go to End


3 Posts   1312 Views

Avatar
Carrie_Lang

Community Member, 24 Posts

5 April 2011 at 7:53am

I have the SS based site in the root of the server space. Can I add a folder with the pages not affected by SS in the root folder? If the SS page open in domain.com, can I make a subfolder and get a page without SS opened in domain.com/subfolder?

Avatar
3dgoo

Community Member, 135 Posts

5 April 2011 at 5:51pm

In your root .htaccess file, add the following 2 lines after Rewrite Engine On:

RewriteRule ^subfolder$ subfolder/ [R,L]
RewriteRule ^subfolder/(.*)$ subfolder/$1 [L] 

Then in your subfolder create a new .htaccess file with the following code:

<IfModule mod_rewrite.c>
	RewriteEngine Off
</IfModule>

Avatar
3dgoo

Community Member, 135 Posts

5 April 2011 at 5:56pm

Actually, all you need is the new .htaccess file in subfolder with the following:

<IfModule mod_rewrite.c>
	RewriteEngine Off
</IfModule>