2009-02-27, 12:30 PM
The MyBB htaccess.txt contains rewrite rules like this:
Rewrite Rules are regular expressions, so the ^ matches beginning of the line (beginning of the URL). Unfortunately this also means that . of .html matches any character, and since $ end of the line (end of the URL) is missing this means it will match URLs such as this:
http://community.mybboard.net/thread-458...ated/stuff
To fix, in all rewrite rules, replace .html with \.html$, for example:
This way it will only match URLs that actually end with .html
RewriteRule ^thread-([0-9]+).html
Rewrite Rules are regular expressions, so the ^ matches beginning of the line (beginning of the URL). Unfortunately this also means that . of .html matches any character, and since $ end of the line (end of the URL) is missing this means it will match URLs such as this:
http://community.mybboard.net/thread-458...ated/stuff
To fix, in all rewrite rules, replace .html with \.html$, for example:
RewriteRule ^thread-([0-9]+)\.html$
This way it will only match URLs that actually end with .html