|
|
Browse by Tags
All Tags » Url Rewriter
-
hi there
I am wanting to extract sku code from image url that has two patterns.
In the first case the image url ending pattern is as follows
/images/uploads/19113604-5.jpg
/images/uploads/19113604-4.jpg
/images/uploads/19113604-3.jpg
and I use regex
(?<=\buploads/)(\w+)
$1
this results in
19113604 which is what I want. ...
-
Hi there,
I am using ISAPI-rewrite and succeeded in filtering all urls to my domain.
(www\.)?mydomain\.nl(.*)
I use this regular expression to rewrite these urls to another domain.
That's fine, but now I want to exclude the call for the domain itself from this filter.
What I mean is that calls for ...
-
I have a situation where I am rerouting url as follows:
/test-url/one/two/index.aspx to /Categories.aspx?MID=one&CID=two
I am using the following regex :
^/test-url/([^/]*)/([^/]*)/index.aspx which correctly matches when I have a structure like above. Now I may also have the structure as /test-url/one/index.aspx and would
like ...
-
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 ...
|
|
|