url-rewriting

ASP.net MVC performance with extensionless url on IIS 6

We are getting ready to do a an initial deployment of an ASP.net MVC app on IIS 6 running on Windows Server 2003. We've been reading about performance issues involving the use of extenionless urls in MVC applications specifically in the case of removing the '.aspx' extension from the controller portion of the url. Has anyone who has dep...

URL rewriting- How can I turn example.com/pageid.php?id=12 to example.com/full-title

I want to make my pages search engine friendly and it also looks better that example.com/pageid.php?id=12 I have pages different pages like showUser.php showLocation.php and I want all these to be rewritten. Wo'nt mod_rewrite slow down my app a little bit? ...

htaccess subdomain redirect *above* the rewritebase?

I have a photo gallery at mydomain.com/photos. I'd like to use RewriteRule to enforce photos.mydomain.com as the URL, but the photo gallery comes with its own .htaccess that declares a RewriteBase of /. I think that this is preventing me from doing the otherwise simple redirect I'm aiming for. How do I do this? ...

asp.net: RewritePath to Default Document not Working as Assumed

I am encountering an unexpected behavior: The following statement works fine: Context.RewritePath( "~/Default.aspx" ); // redirect to default doc, explicitly This gives me a 404 error: Context.RewritePath( "~/" ); // redirect to default doc, implicitly Loading document / from a browser without doing any URL rewriting correctly l...

[EZPublish] Removing index.php from URL but keep old links working

Hi all, I'm trying to remove the index.php from the URL, which is working with the .htaccess examples found on the EZPublish site and ForceVirtualHost=true. The problem is that the old links that point to index.php are no longer working (which is problematic when linking from search engines). I've tried to find a fix for this in using ...

Rewriting URLs from https:// to http:// in IIS7

I'm trying to rewrite urls from the form: https://example.com/about to the form http://example.com/about using IIS7 URL rewriting: <!-- http:// to https:// rule --> <rule name="ForceHttpsBilling" stopProcessing="true"> <match url="(.*)billing/(.*)" ignoreCase="true" /> <conditions> <add input="{HTTPS}" pattern="...

UrlRewriter.net problem with master page

hi all, i have implemented Intelligencia.UrlRewriter im my masterpage site. I am successfully able to redirect the page. but on the virtual path its not able to find the CSS/javascript file. Also its not able to find when i user url like http://localhost/mywebsite/test/ but it works when i use http://localhost/mywebsite/test my rul...

Apache rewrite rule with parameters?

Hi, I have the following URL: http://domain.com/index.php?m=feedback&amp;cSubject=My Subject I want to have a rewrite rule so that the following: http://domain.com/feedback?Subject=My Subject maps to the previous url. Heres my rule at the moment: RewriteRule ^feedback?Subject=(.*)$ index.php?m=feedback&cSubject=$1 Doesn't seem ...

Can we use ASP.Net Url Rewriting features in classical ASP

I am developing an application in classical ASP that now requires sef urls. I do not have any asp.net experience but I've heard that ASP.NET+IIS6 provide built-in url rewriting functionality. So before i have someone purchase a url rewriting component for me, I am wondering if it is possible to use the ASP.NET/IIS6 url rewriting function...

How can I match the domain part of a URL in PHP?

I'm so bad at regexp, but I'm trying to get some/path/image.jpg out of http://somepage.com/some/...etc and trying this method: function removeDomain($string) { return preg_replace("/http:\/\/.*\//", "", $string); } It isn't working -- so far as I can tell it's just returning a blank string. How do I write this regexp? ...

URL Rewriter.NET and multiple querystrings

I'm stressing out trying to create a url rewriter.net rule for my web site. I have a link http://localhost/Pages/CategoryList.aspx?ID=2&amp;Page=1 And I want replace it by this http://localhost/Category/2.aspx?Page=1 I tried the following: <rewrite url="~/Category/(.+).aspx?Page=(.+)" to="~/Pages/CategoryList.aspx?ID=$1&amp;Pa...

Custom URL for each user in PHP.

Is it possible to have a website where each user gets their own URL like: www.thewebsite.com/myusername I want each user site to be the same, the only reason the name matters is if a person visiting the site signs up, they get their own custom url, but the person they signed up under is kept track of as their "Parent". So if I go to ww...

Performance loss due to add asp.net_isapi to request pipeline?

Hello, is there a notable performance loss if all files are handled with the aspnet_isapi in request pipeline using IIS6? IIS7 has the new integrated pipeline so that seems not to be a problem. I ask this, because I want apply an .net url replacer on .exe files for example. To do so, I have to add them to the asp.net isapi. I fear this ...

mod_rewrite help

Using mod rewrite for the first time. Please help me with these rules I'd like my urls rewritten for pages as follows: list.php?city=dallas >>> list/city/dallas profile.php?id=12 >>> profile/zaknuman (username retrieved from db) story.php?id=33 >>> story/there-are-no-ants-in-texas (story title retrieved from db) ...

Nginx Rewrite rules for clean URLs ( problem with CSS and JS rendering)

I want to write nginx rewrite rules for clean URLs. Everytime the user hits http://domain.com/abc/12/16/abc-def-ghi I need to execute domain.com/abc.php?a=12&b=16&c=abc-def-ghi. Now my regex is right as per rubular: ^\/abc\/(\d+)\/(\d+)\/(\w+\S+)$ and rule is if (!-e $request_filename) { rewrite ^\/abc\/(\d+)\/(\d+)\/(\w+\S+)$ /abc.p...

Is it possible to bin deploy the IIS7 URL Rewrite Module?

Hi, Can the IIS7 URL Rewrite Module be bin deployed with an ASP.net application? Or does it need to be explicitly installed on every web server? Thanks, Jon ...

jQuery and url re-write

I am having a wierd error and jQuery not working depending on how the url is written. if the url is /index.cfm?show=about-us all is good. BUT if the url is /index.cfm/show_about-us jQuery doesn't seem to load correctly and I get a "$ is not defined" error in fireBug I can't use the standard ?= query string I need to be able to u...

Server path parsed differently based on client configuration

I am working on a Facebook app. It is located at http://apps.facebook.com/rails%5Fdev. I have a problem. The url path to the images directory gets parsed differently based on which client computer it is called from. If it is called from my development system, it requires the following path: http://railsacrosseurope.com/public/images A...

Symfony: email address as request parameter

I'm having some issues with passing an email address in a url to a symfony app. The url looks like example.com/unsubscribe/email/[email protected] It will always result in a sfError404Exception, except when the period is removed. After doing some googling around, the only solution I've yet seen is that htaccess is bypassing the url beca...

How to implement the returnurl like SO in PHP?

It should also work after url rewriting. Is it possible?Otherwise I can only hardcode everything. ...