urlrewrite

What Url rewriter do you use for ASP.Net?

I've looked at several URL rewriters for ASP.Net and IIS and was wondering what everyone else uses, and why. Here are the ones that I have used or looked at: ThunderMain URLRewriter: used in a previous project, didn't quite have the flexibility/performance we were looking for Ewal UrlMapper: used in a current project, but source seem...

ASP.NET - Building your own routing system

In a recent project, I built my own MVC framework in PHP. One of the things I implemented was a routing system. I used Apache's mod_rewrite to send all requests to index.php, and then parsed the URI to extract information and route the request. I'm dabbling in ASP.NET now, and I'm wondering if/how I might perform something similar. Is ...

Using IIS6, how can I place files in a sub-folder but have them served as if they were in the root?

Our ASP.NET 3.5 website running on IIS 6 has two teams that are adding content: a development team adding code and a business team adding simple web pages. For sanity and organization, we would like for the business team to add their web pages to a sub-folder in the project. Root <-- development team pages go here .. Content <-- b...

IIS URL Rewriting vs URL Routing

I was planning to use url routing for a Web Forms application. But, after reading some posts, I am not sure if it is an easy approach. Is it better to use the URL Rewrite module for web forms? But, it is only for IIS7. Initially, there was some buzz that URL routing is totally decoupled from Asp.Net MVC and it could be used for web form...

How to rewrite an URL on a JBoss server?

I would like to redirect/rewrite this two kinds of URLs: mydomain.com -> newdomain.com mydomain.com/specificPage -> newdomain.com/newSpecificPage mydomain.com/anyOtherPage -> mydomain.com/anyOtherPage (no redirect here) So I just want to redirect the root domain to a new domain, and some pages from my domain to some pages on a new do...

Links with and without the .aspx extention

Is is possible to configure a server to allow using links with and without using the .aspx extention. If yes, how could I go about setting this up. I'm working on a client site who is using umbraco. I know it has built in friendly URL capibility. Unfortunatly the site is already live and turning the feature on for the whole lot of lin...

Mask redirect to temporary domain with mod_rewrite

We are putting up a company blog at companyname.com/blog but for now the blog is a Wordpress installation that lives on a different server (blog.companyname.com). The intention is to have the blog and web site both on the same server in a month or two, but that leaves a problem in the interim. At the moment I am using mod_rewrite to d...

URL rewriting problems with ASP .NET 2 on IIS7 and Vista

I've got a website running under ASP .NET 2/IIS7/Vista. I have a URL rewriting module which allows me to have extensionless URLs. To get this to work I have configured the system.webServer section of the config file such that all requests are forwarded to the aspnet_isapi.dll. I have also added the URL rewrite module to the modules secti...

ASP.NET URL rewriting for DB query from URL content without extension

I am trying to create a very simple ASP.NET application that presents information out of a datbase based on the URL, similar to a wiki, but in this case the site is read-only. An example of a url I'd like would be: http://www.foo.com/bar and then it would use "bar" as a SQL query parameter to show information from a database that matc...

Problem with images and stylesheet while using urlrewriter

I'm using the urlrewriter.net as recommended in several questions in here. I'm having difficulties with displaying images and with the stylesheet. I read ScottGu's Blog (again as recommended in here) and in the end he does reffer to this problem and states to use ~/ for server controls etc. ("Handling CSS and Image Reference Correctly" ...

URL characters replacement in JSP with UrlRewrite

I am using UrlRewrite in a JSP project over JBoss. I have configured some rules, so that stuff like: http://mysite/parameter Is read as: http://mysite/index.jsp?parameter=parameter And so on. Now, what I would like to know if there's a way to replace certain characters submitted in the URL by the users with others. Something like wh...

mod_rewrite: Check for Custom query string in URL?

I'm trying to use URL rewrite in my new project. But I also need to allow custom query sting in URL. I just want to know how to write rewrite rule for this URL http://www.mysite.com/edit/123/?q1=value1&amp;q2=value2 to become this http://www.mysite.com/index.php?action=edit&amp;id=123&amp;q1=value1&amp;q2=value2 The custom q...

Is a URL which uses a Rewrite URL still searchable by search engines?

My developer did the following: If someone types public.sample.com/user/chumbawumba it redirects to stage.sample.com/profile.php?username=chumbawumba I want to make sure that the content of the profile -- which contains company information for example, is searchable on the public.sample.com domain name. He used a Rewrite Rule. I gue...

Getting struts s:url includeparams to work on jboss when deploying as ROOT.war

I'm working on a webapp that uses struts 2, spring, URL Rewrite Filter and a couple of other dependencies that I'm not sure are relevant to this. One of the url's we construct is constructed as follows: <s:url id="blah" includeParams="get"> This works fine when deploying in jboss as a normal webapp dropped in deploy/. So then all urls...

Combining UrlRewriteFilter and struts 2 with get parameters

Following up on an older question of mine, I managed to get URL Rewriting working somewhat correctly for my struts project where URLs like search?q=blah get converted to queries search.action?q=blah. We use UrlRewriteFilter for this. This seems to forward fine to struts (if making sure it has a filter mapping with FORWARD), but when the ...

Rewriting a Url which can contain 1 or 2 querystrings with URLRewriter.NET ?

Hi, In my project, my /PropertDetail.aspx can get 2 querystrings. 1st one for the PropertyId /PropertDetail.aspx?PropertyId=5 2nd one for the Language /PropertDetail.aspx?PropertyId=5&Language=2 EDIT: and this page can get one of them or can get both of them, so my rewriter rule needs to handle both of them So, i have set these ru...

url rewriting + Asp.Net Login Form = Death

Hi, on our site we do url rewriting to generate massive amounts of database generated pages. on every page, there is a Login control for users. like this: Internal aspx page: /DB.aspx?id=123 User visible url: /ABC/123.aspx, /ABC/456.aspx ... (url rewritten) unfortunately, the tag on each page has an action attribute of "DB.aspx?id=123...

How can I rewrite all urls to "/"?

Server: Apache I'm looking to rewrite my urls in the following way, and I can't figure out a way to get it to work. http://website.com/index.html I want it to redirect to: http://website.com/ So basically I want to load index.html, but not display it in the url. I also don't want to give it another name. I'm not looking for /index...

URL Rewriting - Redirect With No File Extension

I am currently using the following rules in an htaccess file: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php This works well to ensure that myfile.php works as well as just myfile (with no extension). It also handles querystring's with no problems, so myfile?var=f...

URL Rewriter.NET web.config node issue

I'm using URL Rewriter.NET (which I'm liking a lot, by comparison to URL Rewriting.NET - more versitile it seems, don't get me wrong, I like URL Rewriting.NET, but it didn't seem to satisfy the need, given what I know of the tool). I'm trying to use the default-documents node to redefine the default documents for the site. I've tried add...