473,394 Members | 1,800 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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 1717
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> ¦b¶l¥ó
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Westcoast Sheri | last post by:
Hello. How do I do this: If a visitor types in any number after my url, I want mod_rewrite to convert it to my url/anotherpage.html?number=number_visitor_typed Example: ...
4
by: Support | last post by:
Hello, I am running RedHat & Apache. RedHat does not allow creating more that 32000 subdirectories in one folder due to #defined constant limitation in the core code. I need to display 47000...
1
by: Shabam | last post by:
In Apache there's a pretty powerful module called mod_rewrite. Is there anything like that in dot net?
11
by: joelbyrd | last post by:
I have a people-networking type site in which each user has their own profile page, with their user id encoded. So, for example, the web address of their page might look like...
4
by: Hermann.Richter | last post by:
I want to rewrite URLs like http://domain/dir/file.php?var1=val1&var2=val2#anchor to http://domain/dir/file?var1=val1&var2=val2#anchor In other words, I want to strip out the php extension ...
5
by: laredotornado | last post by:
Hi, I have verified that mod_rewrite is enabled on my Apache 2.2 instance. However, now I'm having a problem just serving pages using .htaccess files. Following Rik's advice, my .htaccess file...
2
by: Susanne West | last post by:
hi group. i'm tackling a bigger project that will use mod_rewrite to patch a series of urls into a master php-script. this script builds the page framework that contains a series of elements...
3
by: Dr. No | last post by:
I am new to using mod_rewrite and am trying to rewrite a URL to pass values to my script so that: http://www.myclient.com/everything/animals/mammals/cats is transformed into ...
1
by: jaimebienlesfruits | last post by:
Hi, I'm currently using mod_rewrite to rewrite URLs with server variables. RewriteEngine on RewriteRule ^(+)$ /layout4/$1/ RewriteRule ^(+)/?$ index.php?dir=&page=$1 RewriteRule...
7
by: Dale | last post by:
again, i know this is OT...just move along to the next post if it bugs you. :) i had been trying to have this: project.66.204.32.110 from the client browser, map to a virtual host where the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.