Jump to:

22970 Posts in 11572 Topics by 2823 members

General Questions

SilverStripe Forums » General Questions » Exclude Folder

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: 1994 Views
  • mattiashem
    Avatar
    Community Member
    8 Posts

    Exclude Folder Link to this post

    Hi

    I have q working copy of silverstripe onmy server.
    But now i ant to install i wiki in the same folder.

    But every time i go to the location of the folder silverstripe always catch the request.

    How can i make silverstripe forget of the location /wiki

    // Matte

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Exclude Folder Link to this post

    Add this in your rewrite cond section in your .htaccess file

    RewriteCond %{REQUEST_URI} !^/nameoffolder/.*

  • mattiashem
    Avatar
    Community Member
    8 Posts

    Re: Exclude Folder Link to this post

    Yes did that but i dont have control over the apache.
    So now i have to wait intill they restart the apache and the change kick in.

    Is there no other way to do this ??

    And should it not be

    RewriteRule %{REQUEST_URI} !^/butik/.*

    Instead of RewriteCon ??

    // Matte

  • mattiashem
    Avatar
    Community Member
    8 Posts

    Re: Exclude Folder Link to this post

    My rewire config is now

    RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$)

    RewriteRule %{REQUEST_URI} !^/butik/.*

    RewriteCond %{REQUEST_URI} ^(.*)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]

    // Matte

  • blergh
    Avatar
    Community Member
    1 Post

    Re: Exclude Folder Link to this post

    I had a similiar issue, with the only difference being that the subdirectories on my server were in fact "holders" for subdomains of my website

    This was the first thread that I came across, so for anyone else encountering this problem, I found a reasonably good workaround by simply adding a .htaccess file to the subdirectory with

    "RewriteEngine Off"

    In my case the subdomains that run in the subdirectories do not require the RewriteEngine, if yours do then you will have to add more complex rules, as discussed above.

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