REGEXP/ISAPI_Rewrite

Jan 28, 2007

I have modified this regular expression file for the ISAPI_Rewrite mod (for IIS), but its leaving out querystring param's. I've played with it but can't quite get it to work.

I can see WHY its not including them, I'm just not sure what the expression should be.

Example:

[url]

This should rewrite to path:

/username/?12345

Currently, the expression results in this:

/username/

Here's the code I'm using now:

[ISAPI_Rewrite]

# Any web site starts other than www will be re-mapped to /<subdomain>/
# Example: [url]
# Note: if the folder does not exists, then the user will get a 404 error automatically.
RewriteCond Host: (.*).domain.com
RewriteRule (.*) /$1$2 [I,O,L]

#Fix missing slash char on folders
#This has to be at the end because if invalid dir exists,
#we should show 404 first
RewriteCond Host: (.*)
RewriteRule ([^.?]+[^.?/]) http://$1$2/ [I,RP]

View 1 Replies


ADVERTISEMENT

Regexp / Lighttpd

Mar 22, 2007

I´m having some difficult to create a vhost on lighttpd to answer this kind of requests:

[url]

Example:

$HTTP["host"] =~ "(^|.)mynestas.net$"{

server.document-root = "/home/mynest/public_html"
accesslog.filename = "/www/logs/mynest.log"

}

View 2 Replies View Related

.htaccess With ISAPI_Rewrite

Aug 19, 2009

I have just found out my server only supports .htaccess with ISAPI_Rewrite. Not quite sure how to accomplish this as in the past I just used normal .htaccess code. I just want to do a simple redirect so could anyone shed a bit of light on what I now need to pop in the file.

View 8 Replies View Related

Windows IIS Hosting, Support For .NET 2.0, MS SQL 2005 Database & ISAPI_Rewrite

Jul 1, 2008

recommend me about a good hosting provider for those requirements: Windows IIS hosting, support for .NET 2.0, MS SQL 2005 Database & ISAPI_Rewrite?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved