By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,106 Members | 1,081 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,106 IT Pros & Developers. It's quick & easy.

url rewriting

P: n/a
I am using ASP.NET 2.0 and know about the static list in the web.config for
URL rewriting, but my list is dynamic and I am running into some problems...

1) How do you get URL rewriting to work in the file based website in ASP.NET
2? I tried and every path I go to comes back as resource not found errors

2) Any good solutions to rewriting dynamic URL's in ASP.NET 2.0? Right now I
have the following format for my paths

http://localhost/ <- doesnt rewrite
http://localhost/article.aspx?articleid=1 <- doesnt rewrite
http://localhost/intranet/ <- doesnt rewrite
http://localhost/internet/ <- these rewrite
http://localhost/internet/maintopic/ < rewrites
http://localhost/internet/maintopic/subtopic/ <- rewrites
http://localhost/internet/maintopic/subtopic/subpage <-rewrites

anything out there that could handle that? all the rewrite ones basicly look
up an article ID in my database and rewrite back to the article.aspx page
based on the ID it finds for the given level...

any help would really help thanks!
Sep 29 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
You could take a look at using this component:
http://www.urlrewriting.net/en/Default.aspx

Or even build your own ASP.NET HTTP module, there's plenty of examples
around.

Smokey Grindel wrote:
I am using ASP.NET 2.0 and know about the static list in the web.config for
URL rewriting, but my list is dynamic and I am running into some problems...

1) How do you get URL rewriting to work in the file based website in ASP.NET
2? I tried and every path I go to comes back as resource not found errors

2) Any good solutions to rewriting dynamic URL's in ASP.NET 2.0? Right now I
have the following format for my paths

http://localhost/ <- doesnt rewrite
http://localhost/article.aspx?articleid=1 <- doesnt rewrite
http://localhost/intranet/ <- doesnt rewrite
http://localhost/internet/ <- these rewrite
http://localhost/internet/maintopic/ < rewrites
http://localhost/internet/maintopic/subtopic/ <- rewrites
http://localhost/internet/maintopic/subtopic/subpage <-rewrites

anything out there that could handle that? all the rewrite ones basicly look
up an article ID in my database and rewrite back to the article.aspx page
based on the ID it finds for the given level...

any help would really help thanks!
Sep 29 '06 #2

P: n/a
everytime I try something like this with the file based web server in .NET
2.0 it never works... always gives back "resource not fond" even with their
example projects.... when you go to the "virtual" url... guess this is why
I'm having so much trouble
"Chris Fulstow" <ch**********@hotmail.comwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
You could take a look at using this component:
http://www.urlrewriting.net/en/Default.aspx

Or even build your own ASP.NET HTTP module, there's plenty of examples
around.

Smokey Grindel wrote:
>I am using ASP.NET 2.0 and know about the static list in the web.config
for
URL rewriting, but my list is dynamic and I am running into some
problems...

1) How do you get URL rewriting to work in the file based website in
ASP.NET
2? I tried and every path I go to comes back as resource not found errors

2) Any good solutions to rewriting dynamic URL's in ASP.NET 2.0? Right
now I
have the following format for my paths

http://localhost/ <- doesnt rewrite
http://localhost/article.aspx?articleid=1 <- doesnt rewrite
http://localhost/intranet/ <- doesnt rewrite
http://localhost/internet/ <- these rewrite
http://localhost/internet/maintopic/ < rewrites
http://localhost/internet/maintopic/subtopic/ <- rewrites
http://localhost/internet/maintopic/subtopic/subpage <-rewrites

anything out there that could handle that? all the rewrite ones basicly
look
up an article ID in my database and rewrite back to the article.aspx page
based on the ID it finds for the given level...

any help would really help thanks!

Sep 29 '06 #3

P: n/a
ed
I post something similar
http://msdn.microsoft.com/newsgroups...c-4b765707210f
and I got a good advice from Laurent and the component that Chris recommended
worked well: but wite your own http module, it works for me. Maybe you can
find someting useful related with your problem here:
http://scottonwriting.net/sowblog/posts/943.aspx

"Smokey Grindle" wrote:
everytime I try something like this with the file based web server in .NET
2.0 it never works... always gives back "resource not fond" even with their
example projects.... when you go to the "virtual" url... guess this is why
I'm having so much trouble
"Chris Fulstow" <ch**********@hotmail.comwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
You could take a look at using this component:
http://www.urlrewriting.net/en/Default.aspx

Or even build your own ASP.NET HTTP module, there's plenty of examples
around.

Smokey Grindel wrote:
I am using ASP.NET 2.0 and know about the static list in the web.config
for
URL rewriting, but my list is dynamic and I am running into some
problems...

1) How do you get URL rewriting to work in the file based website in
ASP.NET
2? I tried and every path I go to comes back as resource not found errors

2) Any good solutions to rewriting dynamic URL's in ASP.NET 2.0? Right
now I
have the following format for my paths

http://localhost/ <- doesnt rewrite
http://localhost/article.aspx?articleid=1 <- doesnt rewrite
http://localhost/intranet/ <- doesnt rewrite
http://localhost/internet/ <- these rewrite
http://localhost/internet/maintopic/ < rewrites
http://localhost/internet/maintopic/subtopic/ <- rewrites
http://localhost/internet/maintopic/subtopic/subpage <-rewrites

anything out there that could handle that? all the rewrite ones basicly
look
up an article ID in my database and rewrite back to the article.aspx page
based on the ID it finds for the given level...

any help would really help thanks!


Sep 29 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.