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, Ed, biapar, Willr, Ingo, swaiba

Exclude Folder

Go to End

5 Posts   2775 Views


Community Member, 8 Posts

16 November 2009 at 9:20pm


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


Forum Moderator, 5521 Posts

16 November 2009 at 9:30pm

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

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


Community Member, 8 Posts

17 November 2009 at 7:01am

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


Community Member, 8 Posts

17 November 2009 at 7:02am

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


Community Member, 1 Post

16 November 2010 at 2:07am

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.