MyBB Community Forums

Full Version: [F] htaccess.txt RewriteRule [R] [C-Chris]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The MyBB htaccess.txt contains rewrite rules like this:

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
Reproducible.
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group