Remember me? forgot password | register

SilverStripe Forum

1174 Posts in 335 Topics by 321 members

Jump to:

Website Authors

If this is your first visit, you will need to register before you can post. However, you can browse all messages below.

Community » SilverStripe Forum » Website Authors » .htaccess problem
Page: 1 go to end Reply
Author Topic: .htaccess problem 578 views
  • makimoto
    makimoto's avatar
    Community Member
    3 posts

    .htaccess problem Link to this post

    Hi

    I've got a working install of SS in /. Very nice btw.
    But I also got a phpbb forum in myserver/forum.

    Problem is, as you may have guessed, that .htaccess breaks the forum.
    So right now I've got it renamed, and forum is working and SS is not :)

    I have tried to fix it with my limited knowledge of .htaccess/apache but even with the help of google it's not enough it seems. I was wondering if there's any .htaccess guru present that could steer me towards some resource which would let me make a hardlink to http://myserver/forum and let the rewriting occur in the rest of the dirs?

    Thanks

  • makimoto
    makimoto's avatar
    Community Member
    3 posts

    Re: .htaccess problem Link to this post

    Hi it's me again.

    Just began playing with it and found a working solution. Just added the following line AFTER the SS section:

    RewriteRule ^subdir/([0-9]+)-([a-z]+) http://forum.mydomain.tld [NC]

    Both the forum and the page work

    Thanks to all who thought on my problem :)

  • makimoto
    makimoto's avatar
    Community Member
    3 posts

    Re: .htaccess problem Link to this post

    So It seems I did rejoice before time! :)

    The forum is seen only if you know a "long" link, kind like:

    forum.mydomain.tld/page?blabla_bla_and_whatnot

    but if you attempt to simply go to

    forum.mydomain.tld

    no joy! :(

    So if anyone knows of any solutions to this little problem or has any suggestion of any kind, I'll be grateful.

    Thanks

  • Matt Hardwick
    avatar
    Community Member
    43 posts
    1 SilverStripe Site

    Re: .htaccess problem Link to this post

    I made the forum a separate alias in Apache /html/forum and /html/public so separate folders, and created a /forum alias on Apache...

    What I did before that, and actually have gone back to, is:

    Create a Redirector Page with the URI of /forum, and have it redirect to /forum/index.php - see the screenshot below.
    This also allows me to have a link to the forum in the navigation as if it was any other page :)

    Last edited: 21 August 2008 at 1:10pm

    Attached Files
    578 views
go to top Reply

Currently Online:

There is nobody online.

Welcome to our latest member: lorem