Shorten url to cms

Hi We have a CMS application that allows people to create websites in our domain. The system was built several years ago, and it used a method that passes parameters, such as a site identifier, folder code, and more, using a URL. this method created a giant url for each element on the website

For example: My domain is www.domain.com A
user site in my domain is www.domain.com/user
and every time a user enters his website, he gets a link similar to this www.domain.com/page.aspx ? code = blablasdsdsdsdsds & folder = blablablablablabla and more.

We are trying to reduce the size of the string in the url. What are our options? can we show the user a single url as a virtual one and still work with the old url? We are trying to find a solution that does not force us to rewrite our entire application.

the application is built in C # and the web server is iis 6. Thanks

+3
source share
1 answer

You are looking for URL rewriting.

For IIS7, this functionality is built in through the URL Rewrite Module .

For IIS6, you should read this MSDN article to find out more about how to do this:

:

+2

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


All Articles