XF 2.0 Use full friendly URLs - Error 500

SyTry

Well-known member
Hello,

Since this afternoon I have a problem with my forum. I can't activate the option "Use full friendly URLs" otherwise I have an error 500 outside my main URL. Without this option I have access.
I only made two modifications :
  • I have modified the .htaccess file.
  • I got a new SSL via my host (1&1 IONOS).
Of course I reset the htaccess file, but no change. So I contacted my host, and here is the answer :
The SSL you have before and the current one offer the same terms and conditions, except that the new one allows you to secure your main domain and the subdomains that result from it, the migration from one to the other has not changed any configuration on the server side, the 500 errors are rather generated compared to the changes you may have made on your .htaccess

Could someone help me ? I don't understand what the problem is. Thank you !

Regards, SyTry
 
@SyTry , Can you add a temporary administrator on behalf of Emre? I want to review
It's done.
Thats nothing to do with XenForo. They should search for an 500 error in the log files of your hosting.

For a long time i had a hoster with some different settings. Try to set RewriteBase / just remove the #
I can't find anything on my side, it's a really weird problem.
Hello, you can see the error logs in your file you will find: error_log
Hello, where ?
 
@SyTry Try this .htaccess just for testing..

Apache config:
#    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 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 default

<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://sytrycommunity.fr/$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 /

    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>
 
@SyTry Try this .htaccess just for testing..

Apache config:
#    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 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 default

<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://sytrycommunity.fr/$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 /

    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>
I changed my SSL by submitting the old one, the site works again with the option "Use full friendly URLs". I don't understand how an SSL gives a error 500 with this option...
 
@mcatze

Thanks for your post with your test file of:

Code:
    #    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 /


For anyone who has their forum in a subdomain "forum.example.com" you will want to use "RewriteBase /"

It makes perfect sense once you think about it, but initially it takes a bit when sleep deprived.

Andy
 
Top Bottom