Announcement

Collapse
No announcement yet.

404 errors when users change Thread Display drop downs on forums pages. Mod Rewrite?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] 404 errors when users change Thread Display drop downs on forums pages. Mod Rewrite?

    I just upgraded to 4.1.2 from 3.8.7 and am going through various bug reports. Right now the highest priority is that forums users are unable to change thread display values using the drop down menus at the bottom of the thread listings.

    I have the following .htaccess file in the site root directory:
    Code:
    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^bladeforums\.com
    RewriteRule ^(.*)$ http://www.bladeforums.com/$1 [R=permanent,L]
    
    #from vbulletin .htaccess
    #Options -MultiViews
    
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    
    RewriteRule ^.*$ - [NC,L]
    
    # Forum
    RewriteRule ^threads/.* showthread.php [QSA]
    RewriteRule ^forums/.* forumdisplay.php [QSA]
    RewriteRule ^members/.* member.php [QSA]
    RewriteRule ^blogs/.* blog.php [QSA]
    RewriteRule ^entries/.* entry.php [QSA]
    
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    
    RewriteRule ^.*$ - [NC,L]
    
    # MVC
    RewriteRule ^(?:(.*?)(?:/|$))(.*|$)$ $1.php?r=$2 [QSA]
    and in the forums home directory
    Code:
    # Author: Matty Asia
    # Version 1.6
    # Downloaded from: http://www.vbulletin.com/forum/showthread.php?325798
    
    RewriteEngine On
    Options +FollowSymLinks
    
    ### THIS IS A LITTLE EXTRA SECURITY AND CAN BE REMOVED
    
    RewriteRule ^includes/(.*) index.php
    RewriteRule ^vb/(.*) index.php
    RewriteRule ^packages/(.*) index.php
    
    ### THIS IS THE ACTUAL REWRITE
    
    RewriteRule ^threads/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) showthread.php?t=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^members/([0-9]+) member.php?u=$1&%{QUERY_STRING}
    RewriteRule ^forums/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) forumdisplay.php?f=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^blogs/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) blog.php?u=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^entries/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) entry.php?b=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^list/([^/]*/)([0-9]+) list.php?r=$1$2&%{QUERY_STRING}
    RewriteRule ^content/(.*) content.php?r=$1&%{QUERY_STRING}
    RewriteRule ^widget/config/([0-9]+) widget.php?r=config/$1&%{QUERY_STRING}
    
    #TESTING REMOVE BELOW IF IT DOESN'T WORK
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    
    RewriteRule ^.*$ - [NC,L]
    
    # Forum
    RewriteRule ^threads/.* showthread.php [QSA]
    RewriteRule ^forums/.* forumdisplay.php [QSA]
    RewriteRule ^members/.* member.php [QSA]
    I'm sure it's something simple I've messed up
    Spark
    Kevin Jon Schlossberg
    [email protected]
    "Only Sharp Knives are Interesting"

  • #2
    Have you tried removing the htaccess to see if it works then?

    How about a link so we can see what is going on.

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools <- awesome site for html/css help

    Comment


    • #3
      Sorry about that. Site is http://www.bladeforums.com/forums

      Looks like the thread display drop downs are wanting http://www.bladeforums.com/forums/74...id=&order=desc
      but the server is producing http://www.bladeforums.com/forums/fo...id=&order=desc resulting in the thread display 404ing

      Normal thread links on a main forum display (such as http://www.bladeforums.com/forums/fo...es-(Individual) ) wind up being http://www.bladeforums.com/forums/th...lim-Leverlocks (not lack of second /forums )
      Spark
      Kevin Jon Schlossberg
      [email protected]
      "Only Sharp Knives are Interesting"

      Comment


      • #4
        I hate to bump this, but this is crippling my site. Can anyone offer a suggestion?
        Spark
        Kevin Jon Schlossberg
        [email protected]
        "Only Sharp Knives are Interesting"

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X