Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » .htaccess problem

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1425 Views
  • makimoto
    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
    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
    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
    61 Posts

    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

    1425 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.