I am running a port on an existing ASP.NET Web Forms CMS for ASP.NET MVC and want to get routing from the start.
Note. It is not important to have exactly the same URL structure.
I think this answer is close to what I'm looking for, but I would like someone else to have some additional input.
The current URL structure is similar:
? Content = News / CurrentNews / This _is_a_news_article? Content = Corporate / about_us / Overview
etc.
I would like to add an optional language parameter and keep a similar structure in MVC. So something like:
News / CurrentNews / This-this-news-articleen / News / CurrentNews / This-this-news-article//CurrentNews/---///CurrentNews/---
News / CurrentNews / This-this-news-articleen / News / CurrentNews / This-this-news-article
//CurrentNews/---///CurrentNews/---
?
/CurrentNews/This---///CurrentNews/---/
, ( ) , .
, URL- , SEO . .. URL- .
URL- .
/---
> > >
? ?
, . , , , , , en. , , , . , .
:
[language]/[category]/[subcategory]/[itemtitle]/[itemid]
[itemId] ? -, , 2 . " " , , . SEO-, , ( , ).
, [] , .
, blogpost , , , - MVC 3. !
Source: https://habr.com/ru/post/1763245/More articles:xstream is the right way to save XML in UTF-8 - javaHow to find the most common number in the input? - c ++How to create a WCF response service to test AJAX modules - jsonPHP Twitter OAuth Retweet - phpIs it possible to mass delete EBS snapshots from the command line on Windows? - command-lineInheriting a Model Using Programming Style Data Types - inheritanceSymfony class autoload in Zend_Framework - dependency-injectionSQLite SELECT that returns identifiers and positions - sqlTwo identical lines, but different lengths. Cropped, peeled, etc. - phpon iOS, how can I shift the navigationItem.leftBarButtonItem horizontally to the right? - iosAll Articles