problem in domain redirection (infinite loop)

skym4n

Verified User
Joined
Aug 1, 2020
Messages
100
Location
Brazil
I'm doing a redirect in the domain www.lojabessa.com.br to www.lojabessa.com.br/wp, but it is creating a loop of directories, see: www.lojabessa.com.br
result in: https://lojabessa.com.br/wp/wp/wp/w...wp/wp/wp/wp/wp/wp/wp/wp/wp/wp/wp/wp/wp/wp/wp/
The server uses OpenLiteSpeed

see my print in attachment.


redirecionamento.png
 
In WP, options /wp-admin/options-general.php check the entries for "WordPress-Adresse (URL)" and "Website-Adresse (URL)" and go to Permalinks and re-save them. Try again. If still not working, next check the WP .htaccess for URL Rewrites.
 
Check you .htaccess file, probably there is a "basedir" statement which can also cause this issue.
Must be something in the .htaccess. You can also place it here and we can see where it goes wrong.

Also check if there is a second .htaccess in your /wp directory. 2 .htaccess files can be conflicting.
 
Back
Top