Hello,

I'm trying to understand how to do URL rewriting in ASP.net so that
search engines can better find my website. I've been through Scott
Guthrie's tutorial (http://weblogs.asp.net/scottgu/archive/2007/02/26/
tip-trick-url-rewriting-with-asp-net.aspx) but I have some questions
still...

If I go for the open source URLRewriter.net, and I use regular
expressions like :

<rewriter>
    <rewrite url="~/products/(.+).aspx" to="~/products.aspx?category=
$1" />
</rewriter>

Then how do I do when I have more than one parameters to pass ? What
would be the syntax ?

Also, I just want to check if I undersand well : if I go for this
method, does this mean I need to write all the urls in my application
(for hyperlinks, buttons, etc, etc...) like that :

<a href="Products/Books.aspx" />  instead of <a href="Products.aspx?
Category=Books" />      ?

I find it quite inconvenient. I mean, surely for the end-user it looks
nicer, but as a developer I would feel more comfortable working with
the 'old-way' URLs.

Is there a way to avoid doing that ? If not, then what would the URL
in my hyperlink looked like if there were two parameters or more ?

Thanks

Reply via email to