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

Exclude Folder


5 Posts   2149 Views


16 November 2009 at 9:20pm Community Member, 8 Posts


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


16 November 2009 at 9:30pm Forum Moderator, 5511 Posts

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

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


17 November 2009 at 7:01am Community Member, 8 Posts

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


17 November 2009 at 7:02am Community Member, 8 Posts

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


16 November 2010 at 2:07am Community Member, 1 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.