Python for Entrepreneurs Transcripts
Chapter: SEO and Content Marketing
Lecture: URL structure

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Time to take a quick look at URL structure. I say quick look for a reason. I want to keep this as simple as possible, let's look in an example.
0:09 If you go in Full Stack Python, and you click on any of the pages that are listed in the all topics, for example, web frameworks,
0:16 we can see the URL up here at the top, there are no subfolders between the base URL fullstackPython.com and this particular page,
0:24 it's a simple URL as possible with perhaps the .html. Now, the .html provides no penalty so whether you have a clean URL with or without that,
0:34 for example, if we just had web frameworks, be the same thing, and I suggest for each of your pages, don't nest more than one folder deep
0:41 so what do I mean by folder? I created a blog last year and this is for specific topics,
0:47 the blog top of the page is not in our folder, but when you click on an individual post, you will see that it is under the blog folder,
0:54 some blogs have the month and year listed for example let's say it's 2017 and it's December, and this would create a new URL structure
1:05 where you actually nested four levels deep. So blog 2017, December I strongly recommend against doing that,
1:12 there actually is a penalty the further down something is nested. The reason behind that is, the further something is nested,
1:19 it seems like it's less important so it's less likely to appear at the top of the search results.
1:24 It's also just a longer URL, keep your URLs as short as possible, while still maintaining all of the keywords that you want people
1:31 to find your content when they search for those keywords, now a couple of other simple rules, you'll see
1:37 that I have "How To Make Phone Calls in Python" as the full title but the URL only has make-phone-calls-Python, and that is because the filler words
1:45 like "two, in, a, and" don't need to be in your URL, just keep it to the keywords. I could have just as easily said "how-to-make-phone-calls-Python"
1:55 but I kept it as short as possible, short URLs are better not only for search rankings,
2:00 but also if someone wants to give the URL directly to someone else, they don't have to use a URL shortener like Bitly
2:07 in order to send over something that is not a gigantic piece of text. So keep the slug, what is often referred to as the slug,
2:14 as short as possible, for the content that you create. This is one that you don't need to overthink, make sure that the fully qualified URL
2:20 is only one folder deep in the URL and keep that slug simple with the keywords that you are targeting and remove any extraneous words
2:30 like "and, to, the" from the URL. By following those simple rules, very clean URLs, they are more likely to appear at the top of the search results.


Talk Python's Mastodon Michael Kennedy's Mastodon