Re: [CODE4LIB] oops (was: [CODE4LIB] Any Apache mod_rewrite experts out there?)

2015-05-18 Thread Joe Hourcle
On Mon, 18 May 2015, Karl Holten wrote: As Joe cautioned might happen with the N directive, I get an infinite loop from this. It keeps prepending the domain name so you get http://www.google-com.topcat.switchinc.org/http://www.google-com.topcat.switchinc.org/

Re: [CODE4LIB] oops (was: [CODE4LIB] Any Apache mod_rewrite experts out there?)

2015-05-18 Thread Karl Holten
s (was: [CODE4LIB] Any Apache mod_rewrite experts out there?) On Mon, 18 May 2015, Joe Hourcle wrote: > RewriteRule ^(.*)-(.*)ezproxy.switchinc.org/(.*) > $1.$2ezproxy.switchinc.org/$3 [N] I wasn't thinking ... RewriteRule doesn't operate on the full URL, only on the non-ho

Re: [CODE4LIB] oops (was: [CODE4LIB] Any Apache mod_rewrite experts out there?)

2015-05-18 Thread Mark Vega
Although I'm no mod_rewrite expert, I'm a bit confused (and maybe you need to give a little more detail on what the original ezproxy urls look like), but it seems to me that if all you're trying to do is redirect http(s)://ezproxy.switchinc.org urls to a new domain, something like this should s

[CODE4LIB] oops (was: [CODE4LIB] Any Apache mod_rewrite experts out there?)

2015-05-18 Thread Joe Hourcle
On Mon, 18 May 2015, Joe Hourcle wrote: RewriteRule ^(.*)-(.*)ezproxy.switchinc.org/(.*) $1.$2ezproxy.switchinc.org/$3 [N] I wasn't thinking ... RewriteRule doesn't operate on the full URL, only on the non-host portion. You might need to do strange things w/ RewriteCond and RewriteRule i

Re: [CODE4LIB] Any Apache mod_rewrite experts out there?

2015-05-18 Thread Michael Berkowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 18 May 2015, Joe Hourcle said: > > If we assume that the FQDN only contains numbers, letters, dashes and > periods (no underscores or other characters), you might check how the first > one compares to: > > RewriteRule ^([a-zA-Z0-9\.]+)-([

Re: [CODE4LIB] Any Apache mod_rewrite experts out there?

2015-05-18 Thread Joe Hourcle
On Fri, 15 May 2015, Karl Holten wrote: My organization is changing proxy servers from WAM to EZproxy, and we would like to give staff time to change over their URLs before we make the switch. I would like to set up forwarding so the links using the new proxy get redirected to the old proxy.

Re: [CODE4LIB] Any Apache mod_rewrite experts out there?

2015-05-18 Thread James Morley
...@switchinc.org] Sent: 15 May 2015 20:04 To: CODE4LIB@LISTSERV.ND.EDU Subject: [CODE4LIB] Any Apache mod_rewrite experts out there? My organization is changing proxy servers from WAM to EZproxy, and we would like to give staff time to change over their URLs before we make the switch. I would like to

[CODE4LIB] Any Apache mod_rewrite experts out there?

2015-05-15 Thread Karl Holten
My organization is changing proxy servers from WAM to EZproxy, and we would like to give staff time to change over their URLs before we make the switch. I would like to set up forwarding so the links using the new proxy get redirected to the old proxy. I'm planning on using apache's mod_rewrite