c# - Managing Descriptive URLs -
I've noticed that many blogs use URLs that look like this:
< / P>
I think this is done for search engine optimization.
How is it read from the underlying data model? Are you actually searching in the database?
Virtual Kamalaidi Perspective Video PortableForThemotwalker
If so, how is the details managed? If this is the key, then what is the rule that it can be created without breaking the web link anytime?
You are right that it is used for search engine optimization. This works best if you separate different words from dashes or underscores.
These SE-friendly url parts are often called slug or url slug . A slug should be unique in your application, and generally the function that makes or checks them should be kept in mind.
Just like anything else, there are several ways to implement something like this, usually you store a string of text about a database item, eg. Title of an article If you do not want to store it, you can convert it to URL slug in dynamic form at load time, or you can save real title and URL slug at insert / update time, and load You can use Slug as your database selection criterion. Related Pages
If you want to be super-strong with your app, you can automatically save a slug history, and whenever 3d slug changes, "301s are permanently moved. "Can generate headers.
Comments
Post a Comment