471,337 Members | 977 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

mod_rewrite

Do dotnet have a module as apache's mod_rewrite??
if yes, will server performance downgrade??

Thanks in advanced.
Jan 19 '06 #1
3 1631
No, but it has the infrastructure to do it. It's called "URL Rewriting".
You can find some example code easily by searching on "ASP.NET" "URL
Rewriting".
What exactly is it that you need to do?
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"beachboy" wrote:
Do dotnet have a module as apache's mod_rewrite??
if yes, will server performance downgrade??

Thanks in advanced.

Jan 19 '06 #2
Thanks for your advise.

I want to rewrite the url bcoz my unique id (GUID) is too long and google
will stop to search such long long url
Anyone did it previously???

Thanks.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> bl
news:9C**********************************@microsof t.com g...
No, but it has the infrastructure to do it. It's called "URL Rewriting".
You can find some example code easily by searching on "ASP.NET" "URL
Rewriting".
What exactly is it that you need to do?
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"beachboy" wrote:
Do dotnet have a module as apache's mod_rewrite??
if yes, will server performance downgrade??

Thanks in advanced.

Jan 19 '06 #3
beachboy <st******@hellokitty.com> wrote:
I want to rewrite the url bcoz my unique id (GUID) is too long and google
will stop to search such long long url
Anyone did it previously???


If you rewrite the URL, surely you'll lose the uniqueness unless you're
very careful.

One alternative would be to make your app use shorter URLs by encoding
the GUID in a different way. You can cut down the space taken by using
Base64 encoding, and knocking off the trailing "==" (which you can put
back yourself very easily). You'd end up going down from 36 characters
to 22, assuming you're using Guid.ToString() (effectively).

Call Convert.ToBase64String (guid.ToByteArray()) and then trim the last
two characters. On the reverse side, add the "==" back on the end, call
Convert.FromBase64String, and then call new Guid (bytes).

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Jan 19 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Westcoast Sheri | last post: by
1 post views Thread by Shabam | last post: by
11 posts views Thread by joelbyrd | last post: by
4 posts views Thread by Hermann.Richter | last post: by
5 posts views Thread by laredotornado | last post: by
2 posts views Thread by Susanne West | last post: by
3 posts views Thread by Dr. No | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.