Jump to:

22977 Posts in 11742 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Pages not affected by SS in the subfolder?

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

Page: 1
Go to End
Author Topic: 831 Views
  • Carrie_Lang
    Avatar
    Community Member
    24 Posts

    Pages not affected by SS in the subfolder? Link to this post

    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?

  • ampedup
    Avatar
    Community Member
    133 Posts

    Re: Pages not affected by SS in the subfolder? Link to this post

    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>

  • ampedup
    Avatar
    Community Member
    133 Posts

    Re: Pages not affected by SS in the subfolder? Link to this post

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

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

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