How to troubleshoot Redirecting issue in WordPress website? Serverhosthub – The Hosting Platform Made For You – Go Online With Hosting serverhosthub | free hosting | Linux shared hosting | Hosting | Free domain | Life time Free ssl certificate | Chepest web hosting | Low price hosting | Domain Transfer

Hi,

Here in this tutorial we will show you how to troubleshoot redirecting issue in your WordPress website.

Let me tell you that if you are facing any kind of redirection issue in your WordPress site then it is probably because of some wrong redirection rule placed inside your hosting account. With the help of this article, you will learn how to troubleshoot redirect issues in your WordPress website.

Troubleshooting 1.

Login to your WordPress admin panel

Once logged in, navigate to Adjustment page and click General Settings.

How to Troubleshoot Redirecting Issues in WordPress Website

When on the General Settings page, you will see that there is a list of settings and available options. Double-check and make sure that the addresses of both WordPress and the site match.

How to Troubleshoot Redirecting Issues in WordPress Website

If there is a mismatch between the two URLs (for example the WordPress address has been set to http://mydomain.com/, but the site URL points to http://www.mydomain.com/), you need to make sure that both web addresses are the same.

Troubleshooting 2.

login to your seapanel

click on file manager and then go inside public_html

check for .htaccess file outside as well as inside public_html

open to .htaccess Check file and redirection rule which will be something like shown below

How to Troubleshoot Redirecting Issues in WordPress Website

You can easily remove it if not necessary.

Troubleshooting 3

login to your seapanel

click on file manager and go in public_html

Now go to your WordPress installation folder and find wp-config.php file

to open wp-config.php file and check your script for the following two global variables – define(‘WP_HOME’, ‘http://www.mydomain.com’); And define(‘WP_SITEURL’, ‘http://www.mydomain.com’).

How to Troubleshoot Redirecting Issues in WordPress Website

please verify that WP_HOME address matches WP_SITEURL Hostname in code.

Troubleshooting 4.

If your domain is using cloudflare, then you also need to do some troubleshooting on the CloudFlare panel by checking the existing page rules.

login to your cloudflare accounting

Select the domain where you want to edit your page rule.

Find rules to edit now

How to Troubleshoot Redirecting Issues in WordPress Website

To delete the rule, click delete button (x icon) and confirm it by clicking Ok

So now that you know how to troubleshoot redirection in your WordPress website, I think it will now be easier for you to troubleshoot the problem.

Troubleshooting 5.

Check some redirect code in index.php file. Sometimes index.php is also responsible for the redirection of the website. So if such code exists inside index.php file, remove it if not needed.

If all these troubleshooting doesn’t work in your case, then you will have to search for something like “redirect” keyword throughout cPanel by following the tutorial below.

SSH level >> https://serverhosthub.com/how-to-find-a-keyword-under-whole-public-html-via-ssh/

cPanel Level >> https://serverhosthub.com/how-to-find-a-keyword-under-whole-public-html-via-cpanel-user-level-access/