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
 
Revert to a default .htaccess file - does it work then?

https://xenforo.com/community/htaccess.txt
Of course I reset the htaccess file, but no change.
No
Could you show us the .htaccess?
Of course, actually I use this one :
Code:
#    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 /xenforo

    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>

<IfModule mod_gzip.c>
    mod_gzip_on Yes
    mod_gzip_dechunk Yes
    mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
    mod_gzip_item_include handler ^cgi-script$
    mod_gzip_item_include mime ^text/.*
    mod_gzip_item_include mime ^application/x-javascript.*
    mod_gzip_item_exclude mime ^image/.*
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>

<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/shtml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>

# LiteSpeed XenForo cache
<IfModule litespeed>
    CacheLookup public on
    RewriteEngine On
     # cache
     RewriteCond %{HTTP_COOKIE} !xf_user [NC]
     RewriteRule .* - [E=Cache-Control:max-age=360]
     # no cache
     RewriteCond %{HTTP_COOKIE} xf_user [NC]
     RewriteRule .* - [E=Cache-Control:vary=loggedin]
     RewriteCond %{HTTP_COOKIE} xf_user [NC]
     RewriteRule .* - [E=Cache-Control:no-cache]
</IfModule>

I tried to reset the default one several times, it doesn't work. Like this one : https://xenforo.com/community/htaccess.txt
 
No, the only one I have is through an add-on, and it's been there for a long time. The only modification I had today outside my htaccess is SSL, but my host tells me that's not the problem.
Would you take a backup of your own file? And try the code below.

HTML:
#    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

    #    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
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    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>
 
Would you take a backup of your own file? And try the code below.

HTML:
#    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

    #    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
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    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 have tried but it doesn't work. Even with the original file however the mod_rewrite is present so it should work correctly.
When your host tell you that's not the problem you should aks what's then the problem. I think they don't really take a look..
When your site shows an server error, the error should be logged in the log files.
My host doesn't find any errors, they don't know XenForo I think because for them my URLs are not well declared. EDIT : "For example, in the /XenForo folder, you don't have a /members folder, hence your error."
There could eventually be file conflicts.htaccess, knowing that you have another one in your /src folder.
Unfortunately it's not a hosting issue, but simply configuration/scripting, we don't have to provide this kind of support.
I invite you to consult specialized forums or the support of your CMS.

I've never had a mistake since I've been with them. Today I have changed the SSL, can this be an issue ? Not for them..
 
My host doesn't find any errors, they don't know XenForo I think because for them my URLs are not well declared.
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 #
 
Top Bottom