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

Include a forum inside of the SS dir


Reply

3 Posts   933 Views

Avatar
costarricense

25 July 2009 at 5:53am Community Member, 8 Posts

Hi to everybody...

I am trying to include a phpBB forum inside of my SS dir installation but the rewrite rules in the htaccess don't allow me access to the forum dir, my knowledge about htaccess is limited so i need some help!! :P

Here is my htaccess

### SILVERSTRIPE START ###
<IfModule mod_dir.c>
DirectorySlash On
</IfModule>

RewriteEngine On
RewriteBase /silver/

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

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

Thanks..... ;)

Avatar
Willr

25 July 2009 at 11:28pm Forum Moderator, 5511 Posts

Add this rule to ignore a dir

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

Avatar
costarricense

26 July 2009 at 6:52am Community Member, 8 Posts

Thanks for reply your solutions works great.

I found another solution, you have to do is rewrite the parent rules puting a new htaccess inside of the dir with this

<IfModule mod_dir.c>
DirectorySlash On
</IfModule>

RewriteEngine Off

This works if you not need rewrite_module inside of the dir.

Bye