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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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

Include a forum inside of the SS dir


Go to End


3 Posts   1678 Views

Avatar
costarricense

Community Member, 8 Posts

25 July 2009 at 5:53am

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

Forum Moderator, 5523 Posts

25 July 2009 at 11:28pm

Add this rule to ignore a dir

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

Avatar
costarricense

Community Member, 8 Posts

26 July 2009 at 6:52am

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