By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
GetaAapp
  • Home
  • Products And Offers
    • Best Seller
    • Discounted Products
    • Exclusive Offers
    • Latest Deals
    • Limited Time Offers
    • Top Brands
  • Category
    • Gadgets
    • Home
    • TV
    • Laptop
    • Games
    • Refrigerators
    • Kids
    • Exclusive Offers
    • Other
Reading: Solving WordPress Site URL Redirect Loop Issue
GetaAappGetaAapp
Font ResizerAa
Search
  • Thereev-home
  • Product And Offers
    • Best Sellers
    • Discounted Products
    • Exclusive Offers
    • Latest Deals
    • Limited Time Offers
    • Top Brands
  • Category
    • Gadgets
    • Home
    • TV
    • Laptop
    • Games
    • Refrigerators
    • Kids
    • Exclusive Offers
    • Other
Follow US
© 2024 Copyright The Reev. All Rights Reserved
wordpress, web, design
TroubleshootingWordpress

Solving WordPress Site URL Redirect Loop Issue

admin
Last updated: December 5, 2024 5:30 pm
By admin 2 Min Read
Share
SHARE

Today, I found out that one of my WordPress website has a redirect loop problem. When I try to log into WordPress dashboard, Google Chrome give me the error notice saying this webpage has a redirect loop.

Selection_289

The problem is that I set my site URL and WordPress Address URL beginning with https:// but I recently remove SSL/TLS from Nginx configuration thus creating a redirect loop. Because I am not gonna enable https on my site this time. So I decided to update the site URL and WordPress URL from MariaDB database using SQL statement.

First SSH into Linux Server and then log into MariaDB database.

mysql -u root -p

Enter database root password. After that, show all your databases.

show databases;

Find the database that WordPress using. And select it.

use ;

Now enter the following SQL select statement

select option_id,option_name,option_value from wp_options where option_id in (1,2);

Outputs

+-----------+-------------+-----------------------+
| option_id | option_name | option_value          |
+-----------+-------------+-----------------------+
| 1         | siteurl     | https://yoursite.com |
| 2         | home        | https://yoursite.com |
+-----------+-------------+-----------------------+
2 rows in set (0.00 sec)

You can see that both siteurl and home (WordPress Address URL) begin with https. So change them so they begin with http. Enter the following SQL statement.

update wp_options set option_value='http://yoursite.com' where option_id in (1,2);

It will update the value of siteurl and home to http://yoursite.com. Now the redirect loop is gone and I can log into WordPress dashboard.

You Might Also Like

Understanding Slug in WordPress

WordPress Sitemap 404 Not Found Error with Nginx

TAGGED:Redirect LoopTroubleshootingWordpress

Follow US

Find US on Social Medias
FacebookLike
TwitterFollow
InstagramFollow
YoutubeSubscribe

Wordpress (3)
Troubleshooting (1)
Basics (1)
SEO (1)

More Related Post

blue and white star illustration
SEO Wordpress

WordPress Sitemap 404 Not Found Error with Nginx

By admin 2 Min Read
coding
Basics Wordpress

Understanding Slug in WordPress

By admin 2 Min Read
GetaAapp

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries…

Categories

  • The Escapist
  • Entertainment
  • Bussiness

Quick Links

  • Advertise with us
  • Newsletters
  • Complaint
  • Deal

© 2024 Copyright  GetanApp. All Rights Reserved

Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?