Forums

SMF forum and WordPress redirects (5 posts)

  1. ph34r
    Member
    Posted 9 months ago #

    Hey guys,

    Does anyone have any experience with putting a forum software inside the same parent directory as wordpress?

    Example:

    Parent
    wp-admin
    wp-content
    wp-includes
    index.php
    etc...
    forum

    I'm trying to make it so that a new SMF install can be like http://www.abcd.com/forum. Unfortunately, new posts and stuff are getting automatically redirected back to the homepage of wordpress when clicked on. Im assuming it's something with the htaaccess within the forum subdirectory, but I can't figure it out. Any suggestions? Thanks guys.

    This is the SMF hta access:
    # Deny access to .htaccess

    <Files ~ “^.*\.([Hh][Tt][Aa])”>
    order allow,deny
    deny from all
    satisfy all
    </Files>
    
    # PRETTYURLS MOD BEGINS
    # Pretty URLs mod
    # http://code.google.com/p/prettyurls/
    # .htaccess file generated automatically on: April 13, 2011, 14:37
    
    RewriteEngine on
    RewriteBase /
    
    # Rules for: actions
    RewriteRule ^(activate|admin|announce|awards|ban|boardrecount|buddy|buddies)/?$ ./index.php?pretty;action=$1 [L,QSA]
    RewriteRule ^(calendar|cleanperms|collapse|convertentities|convertutf8|coppa|copytopic|copytopic2)/?$ ./index.php?pretty;action=$1 [L,QSA]
    RewriteRule ^(deletemsg|detailedversion|display|dlattach|dumpdb|editpoll|editpoll2|featuresettings)/?$ ./index.php?pretty;action=$1 [L,QSA]
    RewriteRule ^(featuresettings2|findmember|help|globalhf|helpadmin|im|jsoption|jsmodify)/?$ ./index.php?pretty;action=$1 [L,QSA]
    RewriteRule ^(lock|lockVoting|login|login2|logout|maintain|manageattachments|manageboards)/?$ ./index.php?pretty;action=$1 [L,QSA]
    RewriteRule ^(managecalendar|managesearch|markasread|membergroups|paypal|mergetopics|mlist|modifycat)/?$ ./index.php?pretty;action=$1 [L,QSA]
    RewriteRule ^(modifykarma|modlog|movetopic|movetopic2|news|notify|notifyboard|optimizetables)/?$ ./index.php?pretty;action=$1 [L,QSA]
    RewriteRule ^(packageget|packages|permissions|pgdownload|pm|post|post2|postsettings)/?$ ./index.php?pretty;action=$1 [L,QSA]
    RewriteRule ^(printpage|profile|profile2|quotefast|quickmod|quickmod2|recent|regcenter)/?$ ./index.php?pretty;action=$1 [L,QSA]
    RewriteRule ^(register|register2|reminder|removetopic2|removeoldtopics2|removepoll|repairboards|reporttm)/?$ ./index.php?pretty;action=$1 [L,QSA]
    RewriteRule ^(reputation|reports|requestmembers|search|search2|sendtopic|serversettings|serversettings2)/?$ ./index.php?pretty;action=$1 [L,QSA]
    RewriteRule ^(sitemap|smileys|smstats|spellcheck|splittopics|stats|sticky|theme)/?$ ./index.php?pretty;action=$1 [L,QSA]
    RewriteRule ^(trackip|admod|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog|viewmembers)/?$ ./index.php?pretty;action=$1 [L,QSA]
    RewriteRule ^(viewprofile|verificationcode|vote|viewquery|who|\.xml)/?$ ./index.php?pretty;action=$1 [L,QSA]
    
    # Rules for: boards
    RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
    RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]
    
    # Rules for: topics
    RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
    RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]
    
    # PRETTYURLS MOD ENDS
  2. Shane Gowland
    Member
    Posted 9 months ago #

    Running two scripts from the same directory is not impossible, but certainly not very easy. You're going to experience a whole host of issues, especially with permalinks.

    Your best bet would be to use a WordPress specific forum plugin, such as Simple:Press or bbPress.

  3. ph34r
    Member
    Posted 9 months ago #

    Thanks for the quick reply. They aren't exactly in the same directories though. I meant that within the root are all the wp folders and files along with an additional folder that holds all of the forums files.

  4. Shane Gowland
    Member
    Posted 9 months ago #

    What I said above still applies to running SMF from a subdirectory. I once had a site set up similarly to how you are describing, but due to weird .htaccess-related behaviour, I had to give up on the idea and run SMF from a subdomain instead.

    Simple:Press is a lot easier :P

  5. ph34r
    Member
    Posted 9 months ago #

    Thanks again for the input. I would love to switch software but I'm dealing with a huge forum integration/migration as part of a rebranding effort and have to stick with SMF. I've seen this done before so many times, surely someone must have an idea. I wonder if using dual subdirectories would work and just change wordpress site URL in the panel:

    Root:
    /wp/
    /forums/

Reply

You must log in to post.

About this Topic

Tags