SEO Friendly URLs with Friendly ID Gem | Ruby On Rails For Beginners Part 8
Автор: Deanin
Загружено: 2022-03-23
Просмотров: 3196
Описание:
Chances are you'll want human readable URLs for your project, both for your users and for search engines to find you. This tutorial covers creating those URL slugs with the Friendly ID gem, but it also covers how to handle cases where you update the post title. That can affect your search ranking as well as confuse users, so it's important to handle it properly. This is done by creating 302 redirects when you change a URL slug, so that the old URL directs to the new post's URL!
Join this channel to help support these videos:
/ @deanin
Source code: https://github.com/Deanout/blog_appli...
FriendlyID::History doc: https://www.rubydoc.info/github/norma...
Follow me on social media:
https://linktr.ee/deanin
Join this channel to get access to perks:
/ @deanin
If you liked this video, please consider subscribing: https://t.co/RZ4EwP0F2a
Timestamps
0:00 Overview Of What Makes A SEO Friendly URL
2:33 Adding Friendly ID Gem And Slugs In Rails 7
6:23 Generate Slugs For Posts Created Before Adding Gem
7:37 Redirecting Old Slugs To Their New Post For Search Engines
9:56 Implementing 302 Redirect For Friendly ID History
12:14 Make Friendly ID Work With Post.find()!
#Deanin #Software #Programming
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: