Forum Discussion

adharkrader's avatar
adharkrader
Icon for Nimbostratus rankNimbostratus
Aug 04, 2014

iRule replacement for mod_rewrite?

I think I've looked at a dozen entries with pieces of the puzzle but I find new chunks every time I re-word my search... is there a full-blooded mod_rewrite iRule on file? I'm looking for one that lets the marketing guys submit their requests to us in mod_rewrite format and we'd add them to an external data group (v11) so it can be changed on the fly.

 

Anything like that already lurking in here?

 

3 Replies

  • Having just read the entire mod_rewrite module for apache, I would have to ask you to provide some samples of what you are trying to do. That module does a lot of things, which part are you using?

     

    • adharkrader's avatar
      adharkrader
      Icon for Nimbostratus rankNimbostratus
      We've got things redirecting and/or rewriting in multiple ways in multiple places. I'd like to consolidate them into LTM using the mod_rewrite rules as a standard syntax. So, rather than recreate portions piecemeal, I'm wondering if there's a way to call or emulate mod_rewrite in total.
  • I am after the same kind of thing need to replicate this

     

    RewriteCond %{HTTP_HOST} ^abc.com$ [NC]

     

    RewriteRule ^/(.*)$ https://xyz.com/$1 [P,L]