|
|
Browse by Tags
All Tags » Url Rewriter
-
Hello!
I am trying to construct some URL rewrite rules and would like to accomplish the following using regex:
http://website.com/c/1/g/pagename => becomes => http://website.com/pagename.asp?c=1
http://website.com/c/1/c/2/g/pagename => becomes => ...
-
Hi all
i have spent some much time trying to work this out..
the problem
I'm using ISAPI Rewrite 3 with i think is just like Apache url re writer. i;m trying to get 3 matches.
page/fine_london.asp
^page/(\w+)_(\w+)\.asp is matches
$0 = page/fine_london.asp AND $1 = fine AND $2 = ...
-
Hi,
I've been working on a custom CMS solution and I'm trying to get generic url matching working in .htaccess.
This is my attempt.. if the file or directory doesn't exist then rewrite
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ...
-
I'm using an ISAPI filter for rewriting URL's on IIS (IIRF). The filter process uses C regular expression syntax and a config file to list all the URL rewriting rules.
The config file is simple and works such that each line is a rule, like so:
RewriteRule <regex match expr> <regex replace expr> [flags]
I ...
-
Urls:
"~/Home/Partner/OnBoard/Cabin/default.aspx"
"~/Home/Partner/OnBoard/Cabin/default.aspx?param=2"
regex:
(~/[Hh]ome/[Pp]artner/[Oo]nboard/)(.*)(/.+\..+)(\?)(.*)
current matches:
"~/Home/Partner/OnBoard/Cabin/default.aspx"
None
"~/Home/Partner/OnBoard/Cabin/default.aspx?param=2"
1: ...
-
Hi,
I was wondering if any of you regex gurus out there could help me...
I'm trying to create url rewriting rules for an ASP.NET environment but have hit a problem trying to create a rule that handles optional query string parameters in the url.
Possible valid urls (I need to extract "NZ", "en", and "123" if ...
-
Philip,
Yes, this is an easy one. I am surprised people did not respond to this one more quickly for you. Try this regex
/default.asp/(\d+)/([\w-]+)/
it will fit into the rule like this
RewriteRule /default.asp/(\d+)/([\w-]+)/ /default.asp\?PageURL=$2&PageID=$1 [I,L]
It will allow dashes in the name. If you want to ...
|
|
|