Mihalism htaccess help?

Discussion in 'Programming' started by dawilster, Oct 21, 2008.

  1. #1
    hi i recently installed mihalism multi forum host and i was quite disappointed to see that it creates a forum at this location for example:

    http://www.domain.com/forums/forumname/

    I heard there was a fix, but the owner of the original site has disappeared and the fix is now unavailable because his site is down.

    so if anybody would like to help me out that would be great.
    the htaccess looks like this:

    #Mihalism Multi Forum Host auto generated .htaccess file
    RewriteEngine On
    RewriteBase /
    RewriteRule ^forums$|^forums/$ index.php [R,L]
    RewriteRule ^forums/([-_a-zA-Z0-9]{3,30})$ $1/ [R=301,L]
    RewriteRule ^forums/([-_a-zA-Z0-9]{3,30})/(.*)$ phpBB3/$2?access_name=$1 [QSA,L]
    Code (markup):
    P.S would anybody no how to make it so mihalism uses subdomains instead of subdirectories, i would be willing to pay for this adjustment

    thanks
     
    dawilster, Oct 21, 2008 IP
  2. snvc

    snvc Peon

    Messages:
    194
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    snvc, Oct 22, 2008 IP
  3. BMR777

    BMR777 Well-Known Member

    Messages:
    145
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    140
    #3
    I think this is someone else just offering their old scripts for download, especially since Mike who started Mihalism isn't on that site.

    @dawilster - I'm not too sure about how to get MFH to work with shorter URLs, but I do remember the fix involved both a .htaccess edit as well as file edits to the MFH files.

    I would also like to recommend to you my MyBB Multiforums Mod which lets you host free MyBB forums with subdomain URLs. The script is 100% free and you can get it here. You can also view a demo here.

    As for getting MFH to work with subdomains, a redirect is probably possible but it wouldn't be true subdomain URLs. If you did something like:

    Options +FollowSymLinks
    Options +Indexes
    RewriteEngine On
    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com$ [NC]
    RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.yourdomain\.com$ [NC]
    RewriteRule (.*) /whereyouinstalledmfh/$1 [L]
    
    Code (markup):
    Place that code in a .htaccess in your public_html folder and change the whereyouinstalledmfh to where the MFH forums are in relation to your domain root. So if forums are at folder/forums/forumname it would be:

    RewriteRule (.*) /folder/forums/$1 [L]
    Code (markup):
    This will redirect any subdomain to the appropriate forum, at least it should. Not tested. :)

    BMR777
     
    BMR777, Oct 22, 2008 IP