Connect with us

.htaccess File

How To Fix WordPress Old URL Redirecting to New URL?

WordPress will do 301 redirects for post’s URL or Slug change. changing a post’s slug in WordPress will automatically create 301 redirects from the old URL to the new URL. It has a suitable feature of recollecting the old URL and 301 redirecting to the new URL.

mm

Published

on

WordPress automatically 301 redirections

Fixing of WordPress Old URL Redirecting to New URL when a WordPress post’s slug changes can follow the below steps.

1. Does WordPress automatically 301 redirects if you change a post URL slug?

WordPress will do 301 redirects for the post’s URL or Slug change. Changing a post’s slug in WordPress will automatically create 301 redirects from the old URL to the new URL. WordPress Old URL Redirecting to New URL has been doing for default post type called post.

Google loves short URLs. SEO specialist changes long URLs to shot URLs for SEO purpose. If you built backlinks by using old URL the URLs are broken it is already indexed in search engines it will cause 404 error and when we change the old URL will show 404 error this why WordPress does automatically 301 redirects old URLs to new URLs this why WordPress is SEO friendly.

WordPress has this suitable feature of recollecting the old URL and 301 redirecting to the new URL so that your links aren’t broken, and backlinks are work fine due to this feature.

This is a cool and trendy feature in WordPress, but it can cause frustration because there are no options in the WordPress dashboard. The only way to remove these old entries is from your WordPress database directly.

2. Why is it important to redirect URLs for SEO?

The role of the 301 redirect in SEO is to preserve your build up rankings and passes of the page authority from an old URL to a new URL. 301 redirections will pass as much value from the old URLs to the new URLs as possible.

If you don’t do 301 redirections may be seen as a soft 404 error page, and search engines won’t pass the authority and traffic-related over from the old URL.

3. Where to implement the redirections?

301 redirections is a developer’s task, ask your developers to do it. In WordPress, we can do through plugins and in server config files like a .htaccess file. Avoid chained redirections; it will cause frustration to users as well as bots. In this situation, your browser will do chained redirections; we can observe the page will not be open; it does redirections continuously.

How To Fix or Turn off or remove WordPress Automatic Old URL Redirecting to New URL when a post’s URL or slug changes?

I don’t recommend changing URL slug before writing a blog we should take care of proper URL slug for posts or pages.

First I had been created a post and published, after few days I was changed my post slug URL that time I have observed when I am updating my new slug it is working fine after being open my old post URL into the browser it is an automatic redirect to my original post URL.

I search on WordPress Codex i found an function called (‘wp_check_for_changed_slugs()’) and its post meta field (‘_wp_old_slug’).

The post meta field (‘_wp_old_slug’) save old slug when changed slugs for published posts.

WordPress has a great feature of remembering the old URL slugs and stored into the database. WordPress Core default added post meta field (‘_wp_old_slug’) for storing old URL slugs for that post.

The most logical use of this function is redirecting changed posts so that those that linked to a modified post will be redirected to the new post.

[php]<?php wp_check_for_changed_slugs( $post_id ); ?>[/php]

The above function returns the changed post slugs. $post_id means Post ID.

It is used to check the changed post slugs for published posts.

The below steps we can follow to fix or Turn off or remove WordPress Automatic Old URL Redirecting to New URL when a post’s URL or slug changes.

This option is not available on WordPress dashboard we need to perform this on WordPress database.

Follow the below steps on how we can fix or Turn off or remove WordPress Automatic Old URL Redirecting to New URL when a post’s URL or slug changes.

Before doing this process, First, take a backup of your WordPress database file first.

4. Steps to remove or fix WordPress Automatic Old URL Redirecting to New URL.

1. Login to your Cpanel and open database via phpMyAdmin.

phpmyadmin

2. In phpMyAdmin click on your WordPress database file.

WordPress MySQL Database

PhpMyAdmin is a most popular and powerful web-based user interface for administering MySQL or MariaDB databases. It is open source web tool, written in Hypertext Preprocessor (PHP). It is one of the better web tools available for working with MySQL or MariaDB databases. It is used to handle the MySQL CRUD operations easily.

MySQL is one of the most popular open source SQL (Structured Query Language) database implementation. WordPress requires a MySQL Database to store all blog related information, including posts, comments, metadata, custom fields, and other information.

3. Click the search tab on phpMyAdmin menu bar.

MySQL Database Tables

4. Search a post meta field value called _wp_old_slug and select all inside tables and then hit the go button.

MySQL Database Tables Search

5. It will show the search criteria for _wp_old_slug value matches.

search criteria for _wp_old_slug value matches

6. We can observe 19 matches in the post meta table in the above screenshot with browse and delete options. Click on the browse option and view the table fields within details.

browse and delete options in MySQL DB

7. We can see all the old slugs details in the below screenshot.

old slugs details meta fields

8. Check all tables at the left side bottom of the tables, as shown in the screenshot, and hit the delete option; all the tables should be deleted.

select all fields in a mysql DB table

The below screenshot shows the Single Database field delete alert with an example.

Single table delete alert example

Means no more old slug URLs in the database the problem with the WordPress Automatic Old URL Redirecting to New URL when a post’s URL or slug changes are fixed or removed.

If you want to edit or save a new URL instead of an old URL, you can follow all steps that don’t delete, and you can edit each field and update the new URL or slug as per below screenshot.

Editing of _wp_old_slug field

Helpful Resources:

1. Top 20 Free Yoast SEO Alternatives & Competitors for WordPress Websites

2. WordPress Development Tips to Supercharge Your Projects

3. 16 Best Free SEO WordPress plugins for your Blogs & websites

4. 16 Best (free) AMP – (Accelerated Mobile Pages) WordPress Plugins

5. Top 50 Best (Free) WordPress WooCommerce Plugins for your storefront

6. JavaScript SEO: Server Side Rendering and Client Side Rendering

We are an Instructor, Modern Full Stack Web Application Developers, Freelancers, Tech Bloggers, and Technical SEO Experts. We deliver a rich set of software applications for your business needs.

Continue Reading
Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

.htaccess File

HTTP vs. HTTPS: How to Select the Best Option for Your Website

HTTP vs. HTTPS: An HTTP is a HyperText Transfer Protocol, whereas a WWW is a World Wide Web that connects clients and servers.

mm

Published

on

HTTP vs. HTTPS for Your Website

Can you even imagine that a single letter could make much difference with your website ranking? Confused by what I am talking about? Straightforward, it is the HyperText Transfer Protocol.

1. What so important about HTTP?

If you have noticed since 2014, Google announced that websites that hold the HTTPS on it would obtain a hike in its search ranking. You might have wondered, what would this “S” does with the website’s ranking. I would say it has a lot more than you think.

In today’s post, let us investigate HTTP vs. HTTPS and what is the best option to select the HTTPS for your website. Would you be interested to know more about it?

Let’s get started!!!

HTTP vs. HTTPS How to Select the Best Option for Your Website

2. What is HTTP?

An HTTP is a HyperText Transfer Protocol, whereas a WWW is a World Wide Web that connects clients and servers. Now clubbing these two techniques together makes some sense. It is done by establishing a communication between the client computers and web servers by sending an HTTP request and receiving an HTTP response on the other end.

An HTTP being a stateless protocol does not save or store any of the previous web sessions. As the protocol is stateless, there is less usage of data; therefore, increasing data transfer speed. There are several other benefits of using HTTP. A few of them are as follows,

  • Helps in accessing HTML pages
  • Websites without confidential data use HTTP to access
  • Functional and efficient

3. What is HTTPS?

The HTTPS (HyperText Transfer Protocol Secure) security is the essential thing that is very much needed these days. In recent times we face a lot of security breaches, especially when it comes to eCommerce websites, there is a lot of complaints from the customers that they have issues, or their money is stolen at the transaction. All these are referred to as security threats. In order to avoid such discrepancies, the HTTPS was introduced to ensure security among users.

SSL and HTTPS

4. Select the best SSL Certificate for your website

Before we could move into choosing the right SSL certificate for your website, let us investigate the types of SSL certificates that exist.

The types of SSL certificates are as follows,

  • Single Domain SSL Certificate
  • Multi-domain SSL Certificate
  • Wildcard SSL Certificate
  • Organizational Validation SSL Certificate
  • The extended Validation SSL certificate

5. The Extended Validation SSL certificate (EV-SSL)

The Extended Validation SSL Certificate promises you with the highest level of security to your website and the most top validation done by a Certificate authority. The brand that involves the certificate will have to undergo a rigorous background check and various confirmation process in order to get it validated.

To be more authentic, EV-SSL is the best form of security and a cost-effective certificate that can be added to your website.

Benefits of having an EV-SSL Certificate:

  • EV SSL is intended to obviously convey the dependability of the site to its users by offering a green bar that assures client certainty.
  • EV decreases cart abandonment and improves client conversions. You get higher revenue per exchange and higher lifetime client esteem.
  • Demonstrates your site has passed similar security checks as the other significant sites.
  • It isn’t merely the best SSL certificate for WordPress and the best SSL certificate for internet business yet for every single other sort of site.
  • Most elevated SSL security levels – 2048-bit digital signatures all through the whole certificate bind and up to 256-bit encryption as standard.

6. Organizational Validated SSL Certificate

Organizational Validated SSL certificate ensures high-level web security. The OV-SSL certificate adds up validation of the complete business details, which includes name, address, domain name, and any other sensitive information of the website holder.

The installation of an OV-SSL certificate to your domain shows a green padlock symbol at the front. The certificate provides warranty assurance and 100% security with secure data encryption.

Especially when it comes to eCommerce websites, a customer can be hassle-free on noticing the HTTPS on the address bar as it ensures the sign of security to its customers.

HTTP and HTTPS

7. Domain Validated SSL Certificate

A domain validated SSL does not authenticate or validate business information. The certificate still ensures high-level security, but low level of validation compared to EV and OV SSL.

8. Single domain SSL Certificate

The single SSL certificate allows a customer to secure only a single domain/sub-domain on one single certificate. The single-domain SSL certificate ensures strong security against data theft and security breaches.

A single-domain SSL certificate can be used to protect a single domain, individual sub-domain, hostname.

There are other cheap SSL certificates that can help you protect your website from security breaches. They are as follows,

  • Multi-domain SSL certificate
  • Wildcard SSL certificate
  • Unified Communications certificate

9. Why do you need an SSL certificate for your website?

On the off chance, you need to demonstrate your character and authenticity to your site users; at that point, you certainly need to add an SSL certificate to your site. SSL security is, for the most part, used to protect clients’ data. In this way, they are must for website pages if,

  • You’re selling something on the web (you are assuming acknowledgment card, standardized savings numbers, and some other individual information during the request procedure).
  • You are enabling clients to make accounts with your organization.
  • Your site is encouraging login and enrollment options.
  • You are accepting clients’ data, reports, and photographs by means of the form(s).
  • You give secure administrations like web banking and online email (where complete protection is required).

10. Wrap up:

The most valuable thing you need to know about website security is portrayed in this post. This helps you to have a better understanding of HTTP, HTTPS, and the importance of having an SSL certificate for your website and your online business.

The different types of SSL certificates are mentioned above for your convenience that you may choose the right one for your business. Finding the cheapest SSL certificate and an authentic one would never be a typical task for you. Install the best certificate for your online business and skyrocket your business with trust and authenticity.

Continue Reading
CYBER SECURITY Business technology Antivirus Alert Protection Security and Cyber Security Firewall Cybersecurity and information technology
Cybersecurity2 weeks ago

Harnessing AI for Proactive Threat Detection and Response

Key Strategies for Successful Digital Transformation
Business3 weeks ago

Key Strategies for Successful Digital Transformation

High ROI influencer benefits for brands
Marketing1 month ago

Where to Find Influencers for High ROI Marketing Strategies and Why It Matters

Leveraging Cloud Technology for Better Data Protection
Cloud Computing2 months ago

Leveraging Cloud Technology for Better Data Protection

Do you need WORM-compliant storage
Computer Network2 months ago

7 More Secure Gmail Alternatives

How does WORM storage work
Artificial Intelligence (AI)2 months ago

WORM-Compliant Storage: Exploring Write Once Read Many (WORM) Functionality

The Rise of Trail Cameras
Gadgets2 months ago

Trail Cam Tactics: Using Technology to Scout Hunting Spots

Internet2 months ago

Mastering the Art of Task Automation in the Modern Office

5 Innovative Ways Point-of-Care Diagnostic Devices Revolutionize Healthcare Efficiency
Health & Fitness2 months ago

5 Innovative Ways Point-of-Care Diagnostic Devices Revolutionize Healthcare Efficiency

Leveraging Technology In Portable Office Setups For Enhanced Productivity
Technology3 months ago

Leveraging Technology In Portable Office Setups For Enhanced Productivity

Trending