21282 Posts in 5730 Topics by 2601 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1625 Views |
-
Exclude Folder

16 November 2009 at 9:20pm
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
-
Re: Exclude Folder

16 November 2009 at 9:30pm
Add this in your rewrite cond section in your .htaccess file
RewriteCond %{REQUEST_URI} !^/nameoffolder/.*
-
Re: Exclude Folder

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
-
Re: Exclude Folder

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
-
Re: Exclude Folder

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.
| 1625 Views | ||
|
Page:
1
|
Go to Top |


