2011-01-24, 03:14 PM
Ok, so recently I was paid to write a custom conversion script for someone, and they wanted SEO URLs on their MyBB board. So we turned it on in the ACP (Automatic Detection), and renamed htaccess.txt to .htaccess. Automatic detection worked fine and we got:
http://www.someurl.com/forums/forum-2.html
for our forum links.
However, when clicked on, that link generated this lovely 404 error.
After a few minutes of research I learned this was a pretty common mod_rewrite error with CentOS, and how to fix it.
In order to correct the error, we simply had to change:
RewriteEngine on
To
RewriteEngine on
RewriteBase /forums/
So, anyone else who encounters this error, it is a simple and trivial fix. Enjoy.
http://www.someurl.com/forums/forum-2.html
for our forum links.
However, when clicked on, that link generated this lovely 404 error.
Not Found
The requested URL /home/domains/account_name/public_html/forums/forumdisplay.php was not found on this server.
Apache/2.2.3 (CentOS) Server at www.someurl.com Port 80
After a few minutes of research I learned this was a pretty common mod_rewrite error with CentOS, and how to fix it.
In order to correct the error, we simply had to change:
RewriteEngine on
To
RewriteEngine on
RewriteBase /forums/
So, anyone else who encounters this error, it is a simple and trivial fix. Enjoy.