XF 2.2 Help Need On Setting Up USE FULL FRIENDLY URLs

Mbonu

Member
How Do I Get This "USE FULL FRIENDLY URLs" right. I want to check -Use full friendly URLs. But don't know how to to go about this below

SEO Url.webp

If you enable this option, the links generated by the system will not include "index.php?". However, to enable this, mod_rewrite must be available and an appropriate .htaccess file (or the equivalent for your web server) must be in place.

Thanks
 
If I remember correctly you may just need to tick that box. (then URLS will no longer have /index.php and/or maybe other guff in them

If there is an issue then activating the xenForo htaccess.txt file (supplied in the files when it was installed) on your server where the xenForo installation is. Or copying the contents of that into your own htacess file if you already have one.

If you don't have an htacess file, you activate the xenForo one by removing the .txt extension and adding a dot in front of it so htaccess.txt becomes .htaccess

The dot in front makes it a "hidden" file in that it wont be visible unless;ess you have activated "view hidden files" or similar in your FTP application. On Cpanel File manager see settings at the top right

Screenshot 2024-12-25 at 11.08.08.webp

If there are iaasues then the contents of the file give you an instruction (see bold text)

Rich (BB code):
<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 /community

    #    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>
 
Back
Top Bottom