We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 45859
    • 2 Posts
    Sorry, I'm a bit of a ModX noob. The problem I'm having is that I get returned to the homepage when clicking on any boards within my Discuss forum.

    I've modified the discuss resource id in the settings to the ID of my forum resource.

    URLS:
    http://myurl.com/forums/board/1/discuss-101
    http://myurl.com/forums/board/2/test

    WebServer: Apache2
    PHP5
    MODX Revolution 2.2.10-pl (traditional)

    .htaccess
    RewriteEngine On
    RewriteBase /
    # Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
    #RewriteCond %{HTTP_HOST} .
    #RewriteCond %{HTTP_HOST} !^example-domain-please-change\.com [NC]
    #RewriteRule (.*) http://example-domain-please-change.com/$1 [R=301,L]
    #
    # or for the opposite domain.com -> www.domain.com use the following
    # DO NOT USE BOTH
    #
    #RewriteCond %{HTTP_HOST} .
    #RewriteCond %{HTTP_HOST} !^www\.example-domain-please-change\.com [NC]
    #RewriteRule (.*) http://www.example-domain-please-change.com/$1 [R=301,L]
    # Rewrite secure requests properly to prevent SSL cert warnings, e.g. prevent
    # https://www.domain.com when your cert only allows https://secure.domain.com
    #RewriteCond %{SERVER_PORT} !^443
    #RewriteRule (.*) https://example-domain-please-change.com/$1 [R=301,L]
    # The Friendly URLs part
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,NC]



    Any help would be appreciated.

    Thanks,
    Chris

    This question has been answered by gaguy42. See the first response.

    • discuss.answer
      • 45859
      • 2 Posts
      Figured it out. I was missing the following from .htaccess. (I missed that part in the setup doc). smiley

      # If imported from SMF, you can include the following lines to make sure existing urls don't break.
      RewriteRule ^forums/index.php/topic,(.*).msg(.*).html$ forums/?action=thread&thread=$1&i=1
      RewriteRule ^forums/index.php/topic,(.*).(.*).html$ forums/?action=thread&thread=$1&i=1&start=$2
      RewriteRule ^forums/\?topic=(.+).(.+)$ forums/?action=thread&thread=$1&i=1
      RewriteRule ^forums/index.php/board,(.*).(.*).html$ forums/?action=board&board=$1&i=1&start=$2
      RewriteRule ^forums/\?board=(.+).(.+)$ forums/?action=board&board=$1&i=1


      # Discuss rewrite rules
      RewriteRule ^forums/thread/([0-9]+)/(.*)$ forums/?action=thread&thread=$1 [L,QSA]
      RewriteRule ^forums/u/(.+)$ forums/?action=user&user=$1 [L,QSA]
      RewriteRule ^forums/board/([0-9]+)/(.*)$ forums/?action=board&board=$1 [L,QSA]
      RewriteRule ^forums/category/([0-9]+)/(.*)$ forums/?category=$1 [L,QSA]
      RewriteRule ^forums/(.+)$ forums/?action=$1 [L,QSA]
      RewriteRule ^forums/(.+)/$ forums/?action=$1 [L,QSA]