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
  • 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