nextjs-forum
nextjs-forum copied to clipboard
To properly index the pages the URL's need improvement
Currently URL's are like this: https://nextjs-forum.com/post/1131849917082632265
Which has a question title of:
[Need Help] For fetching static files from the server in App directory.
Search engines would prefer the URL be something like this:
https://nextjs-forum.com/post/fetching-static-files-from-server-app-directory
Which ensures indexability and would mean these questions actually turn up when a user searches for them.
Notes:
- Keeping it short is encouraged
- Remove unnecessary words like
for
,the
, &in
. - Adding a number identifier is still useful incase two titles are identifical
- There are packages which help sanitize inputs: https://www.npmjs.com/package/url-slug
- SEO and slugs information: https://rockcontent.com/blog/what-is-url-slug/
Id rather the url be https://nextjs-forum.com/post/1131849917082632265-fetching-static-files-from-server-app-directory
to and only query the id.
or https://nextjs-forum.com/post/1131849917082632265/fetching-static-files-from-server-app-directory