Jump to:

23459 Posts in 18906 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Include a forum inside of the SS dir

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

Page: 1
Go to End
Author Topic: 922 Views
  • costarricense
    Avatar
    Community Member
    8 Posts

    Include a forum inside of the SS dir Link to this post

    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!!

    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..... ;)

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Include a forum inside of the SS dir Link to this post

    Add this rule to ignore a dir

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

  • costarricense
    Avatar
    Community Member
    8 Posts

    Re: Include a forum inside of the SS dir Link to this post

    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

    922 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.