Fixing an ERR_TOO_MANY_REDIRECTS Redirections Error

by | Aug 2, 2022 | Domain Names, Search Engine Optimization (SEO), Technical Help, Web Hosting, WordPress

A usual part of solving issues as they arise in the website development business is searching Google for solutions. Very seldom have I ever been the first or only individual to find a particular problem needing a solution. I don’t believe the situation I’ll describe here is a unique one. However, I was surprised that it wasn’t specifically described or answered anywhere.

The Infamous robots.txt File

There is a file called robots.txt that can be installed in the root of a website’s directory. It assists with providing information that can be useful to a website’s SEO (Search Engine Optimization).

There is a lot of debate on the web as to whether it is worth putting a robots.txt file in a site anymore. Many say it is no longer used and many say it is. The robots.txt file is a tiny text file. Text files not containing any commands are perfectly safe. My viewpoint is that if it is useful to even one search engine – and can’t hurt anything – I am in favor of installing it. I have done some testing that seems to show it helps a site to be found. On top of that, website access logs show me that the robots.txt files in sites are in fact being accessed.

I have been routinely installing robots.txt files in sites we develop here at CharlesWorks. All of the parameters that are available for use in a robots.txt file are beyond the scope of this article. You can search the web for more detailed information on robots.txt files. This one (that I usually use) is an example of a robots.txt file that allows any web crawler to look at an entire website:

User-agent: *
Allow: /

As you can see it’s pretty simple.

The Ever Important Sitemap File

I was in the process of installing a sitemap statement in a robots.txt file. For some time now, WordPress websites automatically generate sitemap file named wp-sitemap.xml that can be viewed even in a browser. My entire robots.txt file for my https://TellYourStory.ws site with the sitemap statement in it looks like this:

User-agent: *
Allow: /
Sitemap: https://tellyourstory.ws/wp-sitemap.xml

As good programming practice would dictate, I tested the URL https://tellyourstory.ws/wp-sitemap.xml which should show me the WordPress generated sitemap. But it didn’t. Instead I was presented with the ERR_TOO_MANY_REDIRECTS redirections error.

ERR_TOO_MANY_REDIRECTS Redirections Error

Navigating to https://tellyourstory.ws/wp-sitemap.xml using Google’s Chrome browser presented me with this:

Chrome browser ERR_TOO_MANY_REDIRECTS page

Now off to Google to troubleshoot what could be causing this ERR_TOO_MANY_REDIRECTS redirections error. I had encountered this error in the past and had a difficult time troubleshooting it.

Most suggested fixes involved clearing your computer’s cache and clearing your cookies. A quick way to do this with the required commands is on another post of mine here:
https://charlesworks.com/how-to-refresh-your-web-browser-page/

Refreshing the browser page did not affect it whatsoever. I wondered what was actually happening when these purported redirections were happening. I needed to see what sequence of events was happening when the https://tellyourstory.ws/wp-sitemap.xml was being applied to the web server. And I really didn’t want to have to dig into the web server itself for the Apache logs to search for that.

Check Your Redirects and Statuscode website

During the Google search for the redirection errors I quite accidentally stumbled across a website that allowed me to see exactly that. I found the https://www.redirect-checker.org/ website. The Redirect Checker site was very easy to use. Here, I was able to type in the the URL https://tellyourstory.ws/wp-sitemap.xml and see exactly what was happening. Here is a screen shot of their web site and the output that was generated after typing in my URL and clicking on their analyse button:

Check Your Redirects and Statuscode

The issue was so embarrassingly silly. As many are once a solution is found. Under the Result (middle of the screen shot above) it states:

CONGRATULATION. Everything seems to be fine.

https://tellyourstory.ws/wp-sitemap.xml
301 Moved Permanently
https://TellYourStory.ws/wp-sitemap.xml
200 OK

Seeing that readout from https://www.redirect-checker.org/ reminded me of something I did thinking I was being fancy and cool. I couldn’t believe I had been bitten by an upper and lower case issue! Many times I have warned my team about the issues that upper and lower case can cause. I had typed the domain in that way – using upper and lower case characters – in the site’s General Settings addresses:

Tell Your Story General Settings page

As a result of thinking I was being fancy, I set up WordPress to perform internal redirects causing the error!

Fixing the ERR_TOO_MANY_REDIRECTS Redirections Error

This fix was as simple as navigating to the site’s Dashboard > Settings and in the WordPress Address (URL) and Site Address (URL) replacing https://TellYourStory.ws with https://tellyourstory.ws and clicking the Save Changes button at the bottom of the page. Note that case does not matter when a domain name is typed into a web browser address bar – it is automatically converted by the browser to all lower case. But case DOES matter to any site page references AFTER the / (slash) character following the domain name.

When I did this, it made me log back in, as it should have because on Linux web servers, upper and lower case names are treated as unique. If your WordPress install is operating on a Windows based server, this issue most likely would not arise since Windows servers do not treat case as unique.

CLICK HERE to find your domain name!   CLICK HERE to transfer your domain name!

Resource Categories

Archives

Tags

24 hour (1) Accounting (1) Advertising (9) AdWare (1) Alex Johnson (2) Alignment (1) Android (2) Anti-Virus (1) Antivirus (1) Antrim Computer Repair and Service (3) APC Back-UPS (1) Appearance (2) Apple Mail (4) Apple Mobile Mail (2) Attachments (1) Audit (1) Authorized (1) Autoresponder (5) Availability (1) Backups (1) Badges (3) Bank Account (1) Bank Statement (1) Battery Backup (2) Bob Hill (1) Bookkeeper (1) Branding (5) Budget (2) Business (19) Business Management (1) Catalog (1) Charles Oropallo (1) CharlesWorks (37) Cherryl Jensen (1) Chrome (1) Cloud (1) Code (2) Communicating (1) Competition (1) Computer (2) Computer Cache (1) Computer Security (1) Constant Contact (1) Consultation (1) Contact Information (2) Content (1) Content Management (20) Content Management System (1) Copiers (1) Copy Machine (1) Coronavirus (2) Courteous (1) COVID-19 (2) Credibility (6) Credit Card (1) Credit Card Processing (1) CSS (8) Customer Service (2) Design (39) Design Expertise (1) Desktop (1) Dialup (1) DirectAdmin (1) Directions (1) DIVI (4) DNS (1) Do-it-Yourself (1) Documentation (1) Domains (17) Domain Transfers (5) E-Commerce (1) Email (63) Email Lists (4) Email Management (2) Email marketing (3) Etiquette (3) Eudora 6 (1) Exchange (1) Expanding (1) Facebook (1) Financial (1) Finish (1) Firefox (1) Fonts (1) Forms (2) Forms Protection (1) Fraud (2) Galaxy S4 (1) General Info (1) Gmail (1) GoDaddy (1) Google (1) Google Adwords Certified Partner (1) Google Chrome (2) Groups (1) Happy Holidays (1) Hardware Help (1) Hill Specialty Networks (1) Hosting (1) Images (1) IMAP (1) include (1) Infected (1) Information (22) insert pages (1) install (1) Internet Browsing Errors (1) Internet Consultant (1) Internet Explorer (1) Keywords (2) Laptop (1) Legibility (1) Linux (5) Logging on (1) Macintosh (1) Mail 6.0 (1) Mail 2011 (2) Make-Over (1) Malicious (1) Malware (1) Marketing (6) Matt Burke (3) MDaemon (3) MelbourneIT (2) menu (1) Merchant (1) meta (1) Microsoft (1) Microsoft Edge (1) Microsoft Hosted Exchange (5) Microsoft Live (2) Mobile Email Setup (1) Monadnock Region (1) Mozilla Firefox (2) MySQL (1) Nathan Wesley (1) Netscape (1) Netscape Messenger (1) Office Copiers (1) OfficeLive (1) Online (1) Outlook (9) Outlook 2010 (2) Outlook Express (1) PayPal (1) Pay Per Click (2) PC (1) Personal (1) Peter Harris (1) Peter Harris Creative (1) Phishing (2) PHP (2) pixel (1) plugins (1) Pop Email (1) Popularity (1) Portfolio (1) Power Grid Failure (1) PPC (1) Prevent Fraud (1) Privacy (1) Private (1) Product (6) Professional (4) Projects (2) Protect (1) Protection (1) Quality (2) QuickBooks (1) Reconciliation (1) Reduce Risk (1) Register (1) Reliability (2) Renew (1) Reseller (2) Resolution (1) Restrict User Access (1) Results (1) Review (2) Risk (1) Robin Snow (1) Roundcube (1) Safe (1) Samsung (2) Scam (11) Scammer (10) Search (1) Search and Replace (1) Search Engine Optimization (6) Search Engines (9) Security (16) Security Risk (1) Selling (1) SEO (1) Servers (2) Service (8) Shopping Cart (1) Site (1) SmarterMail (9) Social Engineering (1) Social Networking (1) Software (1) Solutions for Today (1) Spam (1) Spam Filtering (15) Spammer (1) Spyware (2) SquirrelMail (1) SSL (7) Statistics (2) Stats (2) Stone Pond Technology (1) Storage (1) Support (1) Tablet (1) Target Market (1) Technical Help (1) Testimonials (1) The CW Corner (1) Thom Little (1) Thom Little Associates (1) Thunderbird (3) Thunderbird 10 (2) TLD (1) Topic (1) Top Level Domains (3) Transaction (2) Transfer Data (1) Transfer Funds (1) Typography (1) Update (2) Uploading (1) UPS System (2) Up to Date (1) Virus (2) Viruses (1) Vista (1) Web (1) Web-Over (1) Web Development (79) Web Hoster (1) Web Hosting (2) Web Hosting Company (1) Webmail (8) Web Mail (1) Webmaster (10) Web Presence (23) Website (95) Website Development (1) Web Stats (1) Web terms (1) Web Writing (1) Windows 7 (2) Windows Mail (5) Windows XP (1) WooCommerce (2) WordPress (70) WordPress Updates (1) Working Remote (2) Writing (1) youtube (1)