Address Your URLs # matchurl

Address Your URLs # matchurl

11.Oct.2021

These tactics take a little time and effort, but you'll see the benefits when your site becomes more visible to search engines.

 

Do not ever use dynamic URLs. Do not make any page with a numerical reference in its URL; it's unnecessary and makes no sense for users or search engines. The numbers can change or be removed without affecting the content of the post. A website's URL should describe what is on that page (and therefore why someone would want to click through to that page). 

The .htaccess file is where you'll start this process. First, turn off directory indexes:

DirectoryIndex [URL NAME WITHOUT EXTENSION] /index.html

Next, create a rewrite rule so URLs are shortened: RewriteEngine On RewriteRule ^attachments/(.+) /files/$1 [L]

Finally, add a few redirects to ensure that URLs with Dynamic Numbers in them are properly redirected: RewriteCond % {QUERY_STRING} !^$ RewriteRule (.*) http://www.homepageurl.com/stories/story-id-1 [R=301,L]

You must also take this time to update your backlink profile(s). It's important to replace any nofollowed or low quality links pointing to dynamic URLs with relevant and descriptive link text. Add rel="canonical" tags where appropriate. Your site should be free of broken outbound links by now; if not, go back and fix them all.

This is a good time to check potential keywords in the URLs too. You want your site's pages to highlight relevant content. Look at any post page, for instance: http://thebestsiteever.com/post/detail?id=27869 . This URL contains no mention of what the article is about or why someone would want to click through to it. It should instead use a title-like version—http://www.homepageurl.com/stories/story-id-1, which reads much better and makes more sense from a user perspective (and thus has keyword relevancy).

The following information comes from Moz Community member Michael King : "In case you were wondering, the dynamic directory is treated as a 301 redirect by Google. Similar to how 404s are handled - Google simply marks them as "not indexed". This has worked well for my clients over the years, but it's still important to go in there and clean up/fix anything broken."

This article is very helpful on this topic: http://www.semrush.com/blog/url-optimization-101/.

"There was one technical issue that we wanted to fix (and fixed). The content team requested that we'd like all our internal link URLs to have a static, descriptive URL so that it's easier for us to understand the context. For example, a dynamic URL would be "http://www.example.com/shop/shoes/123", whereas a descriptive URL should be something along the lines of "http://www.example.com/mens-dress-shoes"."

 

Address Your URLs Addresses your use of dynamic URLs and gives tips on replacing them with better ones that help both users and search engines find content more easily.

This article contains valuable information about optimizing your site's SEO efforts by updating web addresses from numeric references to relevant words or phrases (title-like). The .htaccess file is where you'll start this process.

Make sure your website is free of broken outbound links by checking all pages again. Convert any numerical references to relevant keywords in your site's URL, and add rel="canonical" tags where appropriate. Clean up any broken internal or external links you find when you audit them again.

Michael King (Moz Community member) says about using these tactics, "The dynamic directory is treated as a 301 redirect by Google. Similar to how 404s are handled - Google simply marks them as 'not indexed'. This has worked well for my clients over the years, but it's still important to go in there and clean up/fix anything broken."

An in-depth article explains how to handle dynamic numbers in URLs: http://www.semrush.com/blog/url-optimization-101/.

 

Address Your URLs Addresses your use of dynamic URLs and gives tips on replacing them with better ones that help both users and search engines find content more easily. The .htaccess file is where you'll start this process. Make sure your website is free of broken outbound links by checking all pages again. Convert any numerical references to relevant keywords in your site's URL, and add rel="canonical" tags where appropriate. Clean up any broken internal or external links you find when you audit them again."

There was one technical issue that we wanted to fix (and fixed). The content team requested that we'd like all our internal link URLs to have a static, descriptive URL so that it's easier for us to understand the context. For example, a dynamic URL would be "http://www.example.com/shop/shoes/123", whereas a descriptive URL should be something along the lines of "http://www.example.com/mens-dress-shoes"."

 

Yes, you must apply SEO tactics to URLs, too. Search engines consider the keywords in your site's URL just as much as they consider the keywords on a page.

 

Does your website use dynamic URLs, addresses that rely on numbered pages? If so, replace them with static URLs. Take this hypothetical blog post, for instance:

 

Title: Address Your URLs

Article start date: December 7, 2017 Article updated date: January 16, 2018 Article summary (this is what goes at the bottom

We are social