During web development and testing you might need to setup redirections from one domain name or URL to another. Google Chrome will cache those redirects for a long time and if you need to change them you'll need to clear theHTTP 301 redirections first and then setup new ones if still needed.
Below we present three methods you can use to clear the redirections cache from the Google Chrome browser.
Disabling cache temporarily via developer tools
This is the easiest method and targets only the redirect you want to remove.
- Open a new tab
- Open the Chrome developer tools in that new tab (Easiest way is to press F12 on your keyboard)
- Go to the network tab and tick the disable cache checkbox (Disables cache while devtools are open)
- Navigate tothe link you no longer want to have redirected while keeping the dev tools open
- The redirect for that link is now cleared from the cache of Google Chrome
- Untickthe disable cache checkbox cause it's no longer needed and close the dev tools
Preserving logs and clearing via developer tools
If the first method doesn't work for you, try this more elaborate one which also deletes a specific 301 redirect only.
- Open a new tab
- Open the Chrome developer tools (F12)
- Go to the network tab and tick the preserve log checkbox
- Navigate tothe link you nolonger want to have redirected while keeping thedevtools open
- Right click the request that results in the 301 redirect and click clear browser cache
- Untickthe preserve logcheckboxand close the dev tools
Fully clear your browser cache
In case the above methods don't work for you, you might want to just clear the whole cache of Google Chrome. Please make sure you have nothing in your history for example that you want to preserve before proceeding.
Go to settings, privacy and security, and then click clear browsing data, select advanced, and clear everything.If you've just followed the redirect, you only need to delete data from the past hour for example.
Alternatively, from now on, make sure to test and develop in incognito mode as the cache will be flushed after the browser is closed in that case.
Happy coding!
Development
Share this post
Founder of SOFTKUBE, lead developer, and getting things done addict. Passionate about open source, user interface design, business development, and the tech world.
More about Mario Awad
A small team of experts developing simple, usable, and high-quality web solutions. We blog about business, entrepreneurship, web development, and technology.
More about us
Recent Posts
Gaining Access to a Legacy Google Apps Account When Phone Verification Fails
Custom Theme Migration from Drupal 9 to Drupal 10
How to Change the Most Recent Git Commit Message
How to Make Google Chrome Forget a Permanent HTTP 301 Redirect
View all posts
All Posts Categories
BusinessCheat SheetsCLIDesignDevelopmentDownloadsDrupalEmailGoogle AppsHIDKeyboardsMultilingualismOpen SourcePhilosophyPHPPointing DevicesProductivityQuotesScienceSecuritySEOTechnologyThoughtsWindowsZend Framework
FAQs
Go to settings, privacy and security, and then click clear browsing data, select advanced, and clear everything. If you've just followed the redirect, you only need to delete data from the past hour for example.
How do I get rid of 301 redirects in Chrome? ›
If it's an 301 redirect Chrome will cache it. To clear the cache, go to: Chrome Menu > Settings > Show advanced settings... > Privacy > Click Clear browsing data...
How to remove 301 permanent redirect? ›
How do you fix a 301 error message?
- Check Your Htaccess Files for Errors in URL Linking. ...
- Use a Third Party Tool to Check for Any 301 Redirects. ...
- Backup Your Website. ...
- Check Your Server Logs. ...
- Check Your Sitemap. ...
- Check Any Custom Code Files. ...
- Change any HTTP Response Codes to 200 If You Do Not Want A Redirect.
How do I remove redirects in Chrome? ›
Change your default pop-ups & redirects settings
- On your computer, open Chrome.
- At the top right, click More. Settings.
- Click Privacy and security Site Settings. Pop-ups and redirects.
- Choose the option that you want as your default setting.
How do I get rid of HTTP redirects? ›
On Chrome, click "⋮" → "Settings" → "Privacy and Security" → "Site settings" → "Pop-ups and redirects". Make sure it's toggled on. On Firefox, you'll need to edit about:config to block page redirects. On Microsoft Edge, click "•••" → "Settings" → "Cookies and site permissions" → "Pop-ups and redirects".
How do I get rid of error 301? ›
There will be a total of 3 steps to fix from this error:
- Step 1: Run test in BIOS Menu. Remove the hard drive. ...
- Step 2: Run CHKDSK Command. It might be possible that bad sectors, directory errors, cross-linked files, lost clusters, and more are causing 301 errors. ...
- Step 3: Verify a Drive for Errors.
How do I get rid of too many redirects in Chrome? ›
How To Fix Too Many Redirects
- Clear cookies on the redirecting website.
- Clear your browser cache.
- Ensure your SSL certificate is installed correctly.
- Evaluate your third-party services and plugins.
- Reset your htaccess file.
- Contact your hosting provider.
Why am I getting 301 moved permanently? ›
The HTTP 301 Moved Permanently redirection response status code indicates that the requested resource has been permanently moved to the URL in the Location header. A browser receiving this status will automatically request the resource at the URL in the Location header, redirecting the user to the new page.
How do I disable 301? ›
How to Remove a 301 Redirect
- Access your site's root directory and find the . htaccess file.
- Open the file in a text editor.
- Find the line that looks something like this: Redirect 301 /old-page.html /new-page.html.
- You can either delete this line or comment it out by adding a # at the beginning of the line:
When can you remove 301 redirects? ›
301 is permanent, it means forever and that's a mighty long time. However, after a few years the old URLs are often no longer accessed & you can drop those redirects. If you don't see traffic to them, then removing them is fine since it makes long-term maintenance easier.
See if the following steps will fix your issue.
- Check your browser settings. Make sure that your browser is not configured to redirect pages. ...
- Check your extensions. Some extensions can cause unwanted redirects. ...
- Scan your computer for malware. ...
- Contact the website you're trying to visit.
How do I turn off redirect notice in Chrome? ›
Stop Redirects in Chrome Launch Chrome and press the three dots at the top-right corner. Select “Settings.” Press “Security and Privacy” in the left menu. Choose “Site Settings.” Scroll down and select “Pop-ups and redirects.” Ensure “Don't allow sites to send pop-ups or use directs” is selected.
How do I delete a redirect? ›
Removing a redirect
- Click on Redirects under Domains in cPanel.
- From the Current Redirects table, locate the redirect you want to remove. Click Remove.
- Click Remove Redirect to confirm the deletion.
How do I clear 301 redirects in Chrome? ›
Fully clear your browser cache
Go to settings, privacy and security, and then click clear browsing data, select advanced, and clear everything. If you've just followed the redirect, you only need to delete data from the past hour for example.
Is there a way to disable redirects? ›
How to Block Redirects on Chrome
- Go to the Chrome browser on your computer.
- Click More Settings toward the top right.
- Select Privacy and security site settings.
- Click Pop-ups and redirects.
- Select the option to block redirects.
How to check 301 redirect in Chrome? ›
Open the developer tools (usually by pressing F12 or right-clicking and selecting “Inspect”), navigate to the “Network” tab, enter the URL in the address bar, and press enter. Look for any HTTP status codes in the 300 range, such as “301 Moved Permanently” or “302 Found,” which indicate a redirect.
Should you remove 301 redirects? ›
So it's generally best to hold on to 301 redirects if you still receive traffic from active links to the old page. Removing these redirects too soon could harm your rankings, reduce your visitor count, and leave users with a bad impression of your brand after being led to a dead page.
How do I fix 301 redirect? ›
How to fix existing 301 redirect issues on your site
- Make sure the HTTP version of your site redirects to HTTPS. Every website should use HTTPS. ...
- Remove pages with 301 status codes from your sitemap. ...
- Fix redirect chains. ...
- Fix redirect loops. ...
- Fix broken redirects. ...
- Redirect 404 pages.
How do I stop annoying redirects? ›
See if the following steps will fix your issue.
- Check your browser settings. Make sure that your browser is not configured to redirect pages. ...
- Check your extensions. Some extensions can cause unwanted redirects. ...
- Scan your computer for malware. ...
- Contact the website you're trying to visit.