cPanel adds redirects to the end of the .htaccess file. For WordPress websites, this prevents the execution of redirects that are listed after WordPress' rewrite code. Ensure cPanel redirects are placed above WordPress rewrites in .htaccess.
Related Articles
Add Domain Redirect
WordPress Redirect Loop Error
Fix cPanel Redirects Not Working in WordPress
-
Make a backup of the site's .htaccess file by
- Access the site's document root with File Manager
- Right click on the .htaccess file
- Copy the file, giving it a new name such as .htaccess_backup
- Right click on the original .htaccess file
- Edit the file
- Cut any cPanel added redirects from the end (or anywhere after WordPress' rewrite code) of the .htaccess file
- Paste the redirect code above WordPress' rewrite code
- If this doesn't work, consider using a plugin such as 301 Redirects
Comments
0 comments
Article is closed for comments.