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.

General Questions

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

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

Pages not affected by SS in the subfolder?


Reply

3 Posts   888 Views

Avatar
Carrie_Lang

5 April 2011 at 7:53am Community Member, 24 Posts

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

5 April 2011 at 5:51pm Community Member, 133 Posts

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

5 April 2011 at 5:56pm Community Member, 133 Posts

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

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