How to clean up WordPress HTML code

Bloggers and companies focusing on SEO try to always create SEO friendly URLs (Permalinks)

Abderrahim BADIY
2 min readMay 31, 2020

Bloggers and companies focusing on SEO try to always create SEO friendly URLs (Permalinks) as it doesn’t have big impact on SEO or ranking but it’s always good to have a friendly URL that looks like (https://example.com/seo-friendly-permalink) than having a URL that looks like (https://example.com/post=?12568)

In 2014 WPBeginner published an article on how to get rid of numbers in post/page link and creating SEO Friendly links, recently I’ve been doing an SEO audit for many websites, that mostly looks like they have SEO friendly links on the address bar, but search engine bots see other links besides the URL appearing to users. in one of the websites I was auditing, the internal audit shows me that there are 7150 Dynamic URLs on the website 😲😲.

Dynamic URLs (posts/pages with ID number URL)

Why Structuring a website permalink Important:

Structuring website link is helpful and important, that it was refereed to as SEO friendly links, Beside that the post permalink is a ways to use a focus keyword (that was never proved any impact on the SEO), Structuring the website permalink is useful when auditing the website, and you will never need to think “which page is that?🤔”. moreover, it’s helpful for visitors to remember the post or page URL and find it easily for future visits.

Why Cleaning Website HTML Code Important:

I’ve been looking for away to fix this issue and remove the default link created by WordPress and stored in HTML, because having those links in most of times cause in a link redirection (301 redirection) that is not helpful for search engine bots, ending by consuming more time for bots to crawl the website and finally indexing it.

in the next video I’ll be covering different part of codes you better remove to improve your website quality and security:

  1. Customize Permalinks (Create SEO friendly Links)
  2. Get rid of dynamic URLs in your HTML code
  3. Hide WordPress Version for security
  4. Hide Plug-ins Version for security
  5. Disable Comments and posts RSS Feed Links
  6. and More

To clean the HTML code of WordPress website I’ll be using Asset CleanUp Plug-in.

Video tutorial Link with more explanation available in YouTube:

WordPress HTML Code Clean up Tutorial.

--

--

Abderrahim BADIY
Abderrahim BADIY

Written by Abderrahim BADIY

Web Developer | WordPress | SEO

No responses yet