From abc92ba06bb84d544a0d1deb065eb608cac8190e Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Mon, 7 Jan 2008 22:44:06 +0000 Subject: Redirector 1.5 git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@102 119bf307-c92d-0410-89bd-8f53e6181181 --- chrome/content/help.html | 76 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 71 insertions(+), 5 deletions(-) (limited to 'chrome/content/help.html') diff --git a/chrome/content/help.html b/chrome/content/help.html index a9f5245..b4846aa 100644 --- a/chrome/content/help.html +++ b/chrome/content/help.html @@ -9,7 +9,7 @@

Redirector Help

Table of contents

-
    +
+
  • Examples +
      +
    1. Static redirect
    2. +
    3. Redirect using query string parameter and wildcards
    4. +
    5. Redirect using query string parameter and regular expressions
    6. +
    7. Redirect to a different folder using wildcards
    8. +
    9. Redirect http to https using wildcards
    10. +
    + +
  • + @@ -114,7 +123,64 @@

    Examples

    - -

    To be continued in next version...

    + +
      +
    1. + Static redirect
      + Redirects from http://example.com/foo to http://example.com/bar +

      + Include pattern: http://example.com/foo
      + Exclude pattern:
      + Redirect to: http://example.com/bar
      + Pattern type: Wildcard
      +

      + +
    2. +
    3. + Redirect using query string parameter and wildcards
      + Redirects from http://example.com/index.php?id=12345&a=b to http://example.com/printerfriendly.php?id=12345&a=b + where 12345 could be any number. +

      + Include pattern: http://example.com/index.php?id=*&a=b
      + Exclude pattern:
      + Redirect to: http://example.com/printerfriendly.com?id=$1&a=b
      + Pattern type: Wildcard
      +

      +
    4. +
    5. + Redirect using query string parameter and regular expressions
      + Redirects from http://example.com/index.php?id=12345&a=b to http://example.com/printerfriendly.php?id=12345&a=b + where 12345 could be any number. +

      + Include pattern: http://example.com/index.php\?id=(\d+)&a=b
      + Exclude pattern:
      + Redirect to: http://example.com/printerfriendly.com?id=$1&a=b
      + Pattern type: Regular Expression
      +

      +
    6. +
    7. + Redirect to a different folder using wildcards
      + Redirects from http://example.com/category/fish/index.php to http://example.com/category/cats/index.php + where fish could be any word. The exclude pattern makes sure that there is only one + folder there, so for instance http://example.com/category/fish/cat/mouse/index.php would not match. +

      + Include pattern: http://example.com/category/*/index.php
      + Exclude pattern: http://example.com/category/*/*/index.php
      + Redirect to: http://example.com/category/cats/index.php
      + Pattern type: Wildcard
      +

      +
    8. +
    9. + Redirect http to https using wildcards
      + Redirects from http://mail.google.com/randomcharacters to https://mail.google.com/randomcharacters + where randomcharacters could be anything. +

      + Include pattern: http://mail.google.com*
      + Exclude pattern:
      + Redirect to: https://mail.google.com$1
      + Pattern type: Wildcard
      +

      +
    10. +
    \ No newline at end of file -- cgit v1.2.3-70-g09d2