Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Browse by Tags

All Tags » Url Rewriter
  • noobe question on text extraction

    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. ...
    Posted to Construction Advice (Forum) by uzi on March 14, 2010
  • ISAPI_rewrite question

    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 ...
    Posted to Construction Advice (Forum) by wouterxt on February 26, 2010
  • URL Rerouting : How to find multiple sub-folders

    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 ...
    Posted to Construction Advice (Forum) by swanandmokashi on December 1, 2008
  • Combining matching value pairs - URL rewrite

      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 =>  ...
    Posted to Construction Advice (Forum) by robwala on October 23, 2008
  • must be a simple RegEx for ISAPI Rewrite 3

    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 = ...
    Posted to Construction Advice (Forum) by ste1977 on August 26, 2008
  • flexible url rewriting for custom php cms

    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 ...
    Posted to Construction Advice (Forum) by gwizz on May 13, 2008
  • Help with URL Rewriting

    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 ...
    Posted to Construction Advice (Forum) by mason on March 31, 2008
  • Need help with zero or once matches

    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: ...
    Posted to Construction Advice (Forum) by Bkr on February 26, 2008
  • Url Rewriting - Trouble with optional query string parameters

    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 ...
    Posted to Construction Advice (Forum) by gavinharriss on January 8, 2008
  • Re: An easy one?

    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 ...
    Posted to Construction Advice (Forum) by Brendan on March 19, 2007