I am helping to optimize a website for a friend. It is built in asp which I know nothing about. I want the urls to be changed to something more SEO friendly. So I have 2 questions
the programmer is telling me that the url below is database driven and cannot be changed. or its too much work and better to create a whole new page. I simply want to change
I saw something on the Microsoft site that says: URL Rewriting in ASP.NET
“URL rewriting can be implemented either with ISAPI filters at the IIS Web server level, or with either HTTP modules or HTTP handlers at the ASP.NET
level. There are, however, numerous third-party ISAPI filters”
I don’t know enough about databases so I cant find what is best.
If you’re going to use MVC your life will be easier. Any of the MVC tutorials will get you moving with Routing. Using ASP.NET it gets a tiny bit more complicated and I had some issues using routing and membership provider in IIS 7+. I was learning MVC anyway so I never did bother to fix the issues.
Routing, not rewriting is definitely the way to go here.
We usually build objects with two unique keys. First is the good old fasioned immutable primary key – typically an integer or a guid depending on requirements. Second ID is a mutable, human editable one for the URL slug. Load things on the public facing side by url slug, problem solved.
I’ve considered using a slug but I keep things extremely simple. Instead of using a slug, I use the page title with punctuation removed and spaces changed to dashes. Upon submission of a new page or article I validate against existing titles to ensure it doesn’t already exist.