Answered by:
URL manipulation for use in an CMS

Question
-
User456878850 posted
Hello,
I am looking for a way to manipulate the url so I can use it for requests of pages in my database. This is actually the first time doing something like this so I fought asking might be a good idear.
I am trying to get a start on making a CMS. I bassically want to get the page from the database with either pagename.anything (such as page.htm, page.html, page.php, page.aspx) or page?ID=3.
That in itself is not really a problem. The question I am asking myself is really how do I request an URL or querystring from a page that does not exist? I want a class that can request any requested page within my website domain. But is that even possible?
What are the default ways of building such a function? And does any one have tips for me where I need to look at to keep an object oriented and dynamic website.
Thanks in advance.
With kind regards,
Kevin Hendricks
Saturday, January 10, 2009 4:21 AM
Answers
-
User1983487377 posted
This concept is called url Rewriting/Mapping
refer this link ...
http://www.simple-talk.com/dotnet/asp.net/a-complete-url-rewriting-solution-for-asp.net-2.0/
All The Best
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Saturday, January 10, 2009 5:14 AM -
User-867745091 posted
It could be a custom HttpHandler to handle the url request and then service the request using content generated. It's actually the URL rewrite/mapping.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Sunday, January 11, 2009 8:51 AM
All replies
-
User1983487377 posted
This concept is called url Rewriting/Mapping
refer this link ...
http://www.simple-talk.com/dotnet/asp.net/a-complete-url-rewriting-solution-for-asp.net-2.0/
All The Best
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Saturday, January 10, 2009 5:14 AM -
User-867745091 posted
It could be a custom HttpHandler to handle the url request and then service the request using content generated. It's actually the URL rewrite/mapping.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Sunday, January 11, 2009 8:51 AM