“You are not authorised to view this resource”.
I suspect it might be something to do with cPanel adding stuff to the .htaccess file: it adds stuff inside the Joomla .htaccess lines, and adds redirects at the bottom (or, sometimes, anywhere below Joomla’s default stuff). So, my .htaccess looks like this:
How can I get these redirects to work?## Begin - Joomla! core SEF Section.
#
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
# and the requested path and file doesn't directly match a physical file
# and the requested path and file doesn't directly match a physical folder
# internally rewrite the request to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from xx.xx.xx.xx/xx
deny from x.x.xx.xx
deny from xx.xx.xx.xx
RewriteCond %{HTTP_HOST} ^xxxxxx\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.xxxxxx\.com$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^aaaaa\-bbb\-cccccc\/1058\-name\-of\-article$ "http\:\/\/www\.xxxxxx\.com\/aaaaa\-bbb\-cccccc\/1070\-name\-of\-article" [R=301,L]
(repeat above for each redirect)