Guidelines for Converting an Existing Website to a Website with a SEF URL

I have a site that was created about a year ago, and it has been constantly reviewed since then. The website is encoded in classic ASP, contains about ~ 50 pages - some of them are multi-purpose and contain links in the style of the old school, such as:

/news.asp?PageIndex=4
/news.asp?SearchString=Obama
/news.asp?SearchString=Obama&PageIndex=4
/news.asp?NewsID=1

I have IIRF v2 installed that provides access to URL rewriting features, so I have nothing to worry about. My concern is how to replace about 300 links to .ASP pages with SEF URLs. As for my understanding, I have to add a database query (to retrieve the header of the related record) for each link.

I need advice on how to start converting a website into a website with support for SEF URLs with minimal code change. Packaging classes and proven methods and pointers to best practices will be evaluated.

+3
source share
4 answers

If you want to rewrite URLs without changing the framework or anything else, can I suggest you take a look at the IIS7 Url Rewriting Module ?

, .NET... ASP.NET MVC. URL- , , "WebForms" ( ASP.NET) ASP-.

+1

( 301 HTTP).

0

news.asp( ) - (? , ASP), URL ( HTTP) URL.

0

I'm not trying to be funny here, but seriously, how long does it take to convert 300 links manually? I really suspect that it will take less time than trying to find some kind of automatic approach.

-1
source

Source: https://habr.com/ru/post/1722843/


All Articles