# mod_security can interfere with uploading of content such as attachments. If you# cannot attach files, remove the "#" from the lines below.#<ifmodule mod_security.c># secfilterengine off# secfilterscanpost off#</ifmodule>errordocument 401 defaulterrordocument 403 defaulterrordocument 404 defaulterrordocument 500 default<ifmodule mod_rewrite.c> rewriteengine on rewritecond %{http_host} !^your-domain\.com$ rewriterule ^(.*)$ https://your-domain.com/forum/$1 [r=301,l] # if you are having problems with the rewrite rules, remove the "#" from the # line that begins "rewritebase" below. You will also have to change the path # of the rewrite to reflect the path to your xenforo installation. #rewritebase /xenforo # this line may be needed to enable webdav editing with php as a cgi. #rewriterule .* - [e=http_authorization:%{http:authorization}] rewritecond %{request_filename} -f [or] rewritecond %{request_filename} -l [or] rewritecond %{request_filename} -d rewriterule ^.*$ - [nc,l] rewriterule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [nc,l] rewriterule ^.*$ index.php [nc,l]</ifmodule>