SEO Friendly URL Rewriter Parameters

馋奶兔 提交于 2019-12-05 09:39:59
Keltex

Personally, I don't think any of the following:

\12345-ABC123\seo-slug-for-product
\product-ABC123-BOYTOY-2\boys\toys\fly-your-own-helicopter

are particular "friendly". They may be "ok" for SEO, but you might lose your friendly part in the coding you have at the beginning of the url.

Why can't you have something like this:

\product\seo-slug-for-product

And then have a table or dictionary which maps the slug to the product ID. That way when your MVC controller receives the slug as a parameter it can look up all the other values.

Worst case, I would do it the SO way. Which is more like:

\product\123456\seo-slug-for-product

The number is the product ID. I think they do it so that the titles to the articles can change and the old URLs still work. That's why:

SEO Friendly URL Rewriter Parameters

and

SEO Friendly URL Rewriter Parameters

work. They use:

<link rel="canonical" 
    href="https://stackoverflow.com/questions/3023298/seo-friendly-url-rewriter-parameters">

to ensure that google indexes only one page.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!