Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    SquidGuard: Rewrites Rule Help

    Scheduled Pinned Locked Moved Cache/Proxy
    4 Posts 2 Posters 1.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      Resolute
      last edited by

      I can't find SquidGuard: Rewrites documents. Is there a doc?

      I need find&replace rewrite rule. How I can do it?

      If URL like this:
      http://website.com/index.php?action=XXX-ZZZ
      http://website.com/sites/newfile.phpaction=XXX-ZZZ
      …
      etc.

      Find XXX-ZZZ and replace with AAA-BBB for any URL.

      Target URL or regular expression?
      Replace to URL?
      Opt.?

      1 Reply Last reply Reply Quote 0
      • R
        Resolute
        last edited by

        I tried this expression but did'nt work.

        Target URL or regular expression    (.)XXX-ZZZ(.)
        Replace to URL                                $1AAA-BBB$2
        Opt. –-

        1 Reply Last reply Reply Quote 0
        • KOMK
          KOM
          last edited by

          Sorry, I've never tried that.  If you do figure it out, please come back and post your results.

          1 Reply Last reply Reply Quote 0
          • R
            Resolute
            last edited by

            Anyone can help?
            thanks

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.