MyBB Community Forums

Full Version: Several issues after .htaccess mod_rewrite
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
After I added a mod_rewrite rule several things stopped working.
  • Search bar and search page don't work. They just load the /search page
  • If you try to post a comment it says "There was an error posting your reply: The specified thread does not exist."
  • If you try to post a thread it says "Can not upload file - Too large for php post_max_size directive. Please press the back button."
  • Have a user who says he keeps getting "Successfully logged back in" while they never logged in/out (not having this myself)

rewrite works correctly.

Current .htaccess: http://pastebin.com/raw.php?i=5smEYRvs
It's from stackoverflow.com/a/15940822 (slightly edited)

My site http://mysteriousserver.tk/ (temp)
anyone?
RewriteEngine On

RewriteRule ^forums/ - [L,NC]

## hide .php extension snippet

# To externally redirect /dir/foo.php to /dir/foo
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
RewriteRule ^ %1 [R,L]

# To internally forward /dir/foo to /dir/foo.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+?)/?$ $1.php [L]
Provide more info for quicker help - for example you didn't mention what you wanted to achieve in the first place. For having cleaner links I'd rather recommend installing Google SEO.