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.

Problems with asp.net level URL rewrite

Thanks for the help available on msdn, I have succesful done the
rewrite job.
But there are 2 problems arise:
1.when I try to rewrite the url from say:
www.yoursite.com/beverages.aspx to
http://www.yoursite.com/products/Lis...x?CategoryID=1
will result in a partial missing of images and css which are packaged
inside products folder.

and if I rewrite from www.yoursite.com/products/beverages.aspx to
http://www.yoursite.com/products/Lis...x?CategoryID=1
all images and css works
any solutions? because I would like keep the url as short as possiable.

2.How to rewrite url without extension? e.g.
www.yoursite.com/beverages
because the url rewrite is done at asp.net engine level, IIS will
hardly route to it since no signs of infomation tell what itself is.

Mar 10 '06 #1
1 2109
the browser does not know about the rewrite. so when your page has

<img src="foo.gif">

the browser requests

www.yoursite.com/foo.gif

you can create a site images vdir

www.yoursite.com/images

and change refs to:

<img src="/images/foo.gif">

if you want the images in your project, then remap image extensions to
asp.net, then have the urlrewrite do it. note: having asp.net serve the
images has a performance cost compared to iis directly doing it.

-- bruce (sqlwork.com)

"baroque Chou" <ba********@126.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
Thanks for the help available on msdn, I have succesful done the
rewrite job.
But there are 2 problems arise:
1.when I try to rewrite the url from say:
www.yoursite.com/beverages.aspx to
http://www.yoursite.com/products/Lis...x?CategoryID=1
will result in a partial missing of images and css which are packaged
inside products folder.

and if I rewrite from www.yoursite.com/products/beverages.aspx to
http://www.yoursite.com/products/Lis...x?CategoryID=1
all images and css works
any solutions? because I would like keep the url as short as possiable.

2.How to rewrite url without extension? e.g.
www.yoursite.com/beverages
because the url rewrite is done at asp.net engine level, IIS will
hardly route to it since no signs of infomation tell what itself is.

Mar 10 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Phil Frost | last post by:
Greetings all. I'm attempting to embed a python interpreter at a very low level in an OS I am writing. Currently I'm stuck with build issues. Firstly, as there is no working C compiler in our OS, I...
7
by: Jonathan | last post by:
Hey everyone! I am pretty new to C++, and I am just playing around with some things that I have learned so far (trying to put them to use before I continue on with the book). In one section of my...
18
by: gabriel | last post by:
greetings, I am currently working on a website where I need to print the Euro symbol and some "oe" like in "oeuvre". If I choose this : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
53
by: ROSY | last post by:
hello, response if u ,on all level of questions::: 1.how a self deletable .exe file deleted on some future date & time without invoking the .exe itself? 2.if we want that any wildcard...
3
by: Lonewolf | last post by:
Hi all, I'm having difficulties passing data back to managed class from my native class when the data is generated from within a native thread in the native class itself. I will give the following...
1
by: Miguel Isidoro | last post by:
Hi all, I am developing a ASP.NET 2.0 application that must use friendly URLs. As an example, a content in http://www.mysite.com/music/pearljam for instance should be rewritten to...
0
by: Smokey Grindel | last post by:
Does anyone know how to get a rewrite URL to work correctly in ASP.NET 2.0 so that if you make a custom site map pointing to the "virtual paths" it wont give an error with the breadcrumb bar or the...
2
by: =?Utf-8?B?SXbDoW4gU2Fpbno=?= | last post by:
I ran the aspnet_regsql.exe tool with the -sqlexportonly option to create the script. I searched and replace the string by and had the dba's run the script. When I do anything like...
0
by: Hamayun Khan | last post by:
Hi I m developing site for my client using asp.net 2.0. He asked me for URL rewriting. which I have done using Intelligencia.UrlRewriter.RewriterHttpModule rewriting module. I write 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.