How to Troubleshoot Redirecting Issue in WordPress website?

Hosting Solutions
5 min readJun 6, 2022

Redirection Issue is the common error that can be occurred in any of the website whether it be self-coded or the WordPress one. There can be many reasons because of which this error can be occurred.

Today, in this article I will try to explain some of the methods with which redirection issue in WordPress website can be fixed easily. That is why, the topic of the article is how to troubleshoot redirecting issue in WordPress website.

Let us learn about some of the procedures in detail. Here, I will explain both simple and complicated reasons for the error to be occurred.

#1. Clear Browser Cache and Cookies

It is the common reason because of which any website shows redirection issues. Sometimes when inappropriate data stored in cache memory then it gives the same output. So, this can be one of the reason of redirection of WordPress website.

This can be resolve easily too. Get into the settings section of your browser and in the search bar type cache, Clear cache data and that’s it.

#2. Check WordPress URLs

Another reason that causes redirection issue in WordPress is because of URL settings. To fix the issue, follow the below given steps.

  • Login to WordPress dashboard.
  • Get into Settings option and select General from the list.
  • On the next page, multiple options would present. Scroll down to WordPress Address and Site Address section and check if both the URLs are same.
  • If both the URLs are not same, then update and scroll to the bottom and Save Changes.

#3. Manage Redirects from cPanel

cPanel is the management tool used by most of the websites even if you are using WordPress. This is because of its features. So, you can check the reason of WordPress redirection issue from cPanel as well inside Redirects section.

  • Login to cPanel account associated with WordPress website.
  • Get inside Domains section and click over Redirects.

Here, I’ve used the cPanel interface of REDSERVERHOST that has enough features to manage all type of websites.

  • On the next page, scroll down to Current Redirects section and check if you have redirected your website to another one.
  • If you have done so, then delete and then check the URL of your WordPress website.

#4. Check Redirection rule in .htaccess file

Sometimes, website redirection issues occur because of inappropriate redirection rule written in .htaccess file. User can easily fix this issue by following the below mentioned steps.

  • Login to cPanel account associated with WordPress website.
  • Get inside File Manager section and then get into domain directory or WordPress installation directory.
  • Now, right click over .htaccess file and then edit.
  • On the next page, you will see the SSL redirection rule as given. You can delete it as well if not required.
  • Click over Save Changes.

#5. Check wp-config.php file

One of the most important file of WordPress is wp-config. php file. This is because this file has all the details related to WordPress database. You can update the website URL here by adding two lines and fix the WordPress redirection issue.

  • Inside cPanel, get into File Manager section.
  • Now, get inside WordPress installation directory and search for wp-config.php file.
  • Right click over the file and then Edit.
  • Add the following lines in the code as directed in the below image.
define(‘WP_HOME’,‘http://www.example.com”);define(‘WP_SITEURL’,‘http://www.example.com’)
  • Click over Save Changes to add the line.

*If these lines are already present then check that the URLs would be same in both.

#6. Check in Cloudflare

Sometimes, we update DNS records of web application firewall for the security of the website where update redirection rule as well. To fix the redirection issue following steps can be used.

  • Login to Cloudflare account.
  • Select the domain in which you are facing redirection issue.
  • Now, click over Rules to check and edit the page rules.
  • You will see the redirection rule if activated. Click over Actions and disable the Page Rule.

You can use any of the above given steps to troubleshoot redirection issue in WordPress website. If none of the above given method will work then I suggest you to contact your hosting provider immediately.

Moreover, if you want more security features like Imunify360 and backup feature like JetBackup then do check the plans of REDSERVERHOST.

Also, if you want to learn more about WordPress and related articles then check the blog at www.blog.redserverhost.com.

WordPress

Web Hosting

Security of WordPress website

Cheap Web Hosting Services

Cheap Reseller Hosting Services

--

--

Hosting Solutions

Get all the solution related to web hosting and website management.