Re: [users@httpd] RedirectMatch and rewrite rules not working

2023-07-19 Thread Frank Gingras
Step one is to increase the log level to find the source of the 404 errors. Then, you can use the rewrite log to debug further. On Wed, Jul 19, 2023 at 5:36 PM Darryl Baker wrote: > Ever have one of those days where after staring at the configuration for > hours you don’t see what you are doing

[users@httpd] RedirectMatch and rewrite rules not working

2023-07-19 Thread Darryl Baker
Ever have one of those days where after staring at the configuration for hours you don’t see what you are doing wrong? I am having that kind of day. I browse to the URLs https://evumail8prd01.ci.northwestern.edu/activate and https://evumail8prd01.ci.northwestern.edu/manage and all I get is a 404

[users@httpd] RedirectMatch escaping AMP ?

2018-05-18 Thread David Tkacik
Hello Guys, I have a condition like this: RedirectMatch ^/g/(.*) https : //www.${APACHE_HOSTNAME}/folder1/?ec=$1&ea=EBH&el=GCC

Re: [users@httpd] RedirectMatch using current server name

2012-10-12 Thread Tom Evans
On Fri, Oct 12, 2012 at 3:22 PM, plot.lost wrote: > On 12/10/2012 15:19, Tom Evans wrote: >> >> On Fri, Oct 12, 2012 at 2:15 PM, plot.lost wrote: >>> >>> Is there a way to do something like the following where the domain part >>> is >>> replaced by whatever has been configured in ServerName >>>

Re: [users@httpd] RedirectMatch using current server name

2012-10-12 Thread Eric Covener
On Fri, Oct 12, 2012 at 9:15 AM, plot.lost wrote: > Is there a way to do something like the following where the domain part is > replaced by whatever has been configured in ServerName > > RedirectMatch permanent ^/$ http://the.domain.com/path/to/file.html > > i.e. where 'the.domain.com' is whatev

Re: [users@httpd] RedirectMatch using current server name

2012-10-12 Thread plot.lost
On 12/10/2012 15:19, Tom Evans wrote: On Fri, Oct 12, 2012 at 2:15 PM, plot.lost wrote: Is there a way to do something like the following where the domain part is replaced by whatever has been configured in ServerName RedirectMatch permanent ^/$ http://the.domain.com/path/to/file.html i.e. w

Re: [users@httpd] RedirectMatch using current server name

2012-10-12 Thread Tom Evans
On Fri, Oct 12, 2012 at 2:15 PM, plot.lost wrote: > Is there a way to do something like the following where the domain part is > replaced by whatever has been configured in ServerName > > RedirectMatch permanent ^/$ http://the.domain.com/path/to/file.html > > i.e. where 'the.domain.com' is whatev

[users@httpd] RedirectMatch using current server name

2012-10-12 Thread plot.lost
Is there a way to do something like the following where the domain part is replaced by whatever has been configured in ServerName RedirectMatch permanent ^/$ http://the.domain.com/path/to/file.html i.e. where 'the.domain.com' is whatever the current ServerName is without having to edit the Re

Re: [users@httpd] RedirectMatch - http://host/xyz[/abc] => http://xyz.host/[abc]

2012-08-17 Thread sebb
On 17 August 2012 15:58, sebb wrote: > On 17 August 2012 15:30, Eric Covener wrote: maybe RedirectMatch ^xyz(/.*)? http://xyz.host$1 >>> >>> That won't match >>> >>> http://host/xyz >> >> question mark was part of the regex not punctuation, > > Very sorry, my bad, I should have read more car

Re: [users@httpd] RedirectMatch - http://host/xyz[/abc] => http://xyz.host/[abc]

2012-08-17 Thread sebb
On 17 August 2012 15:30, Eric Covener wrote: >>> maybe RedirectMatch ^xyz(/.*)? http://xyz.host$1 >> >> That won't match >> >> http://host/xyz > > question mark was part of the regex not punctuation, Very sorry, my bad, I should have read more carefully. Your suggestion will work fine. > but no

Re: [users@httpd] RedirectMatch - http://host/xyz[/abc] => http://xyz.host/[abc]

2012-08-17 Thread Eric Covener
>> maybe RedirectMatch ^xyz(/.*)? http://xyz.host$1 > > That won't match > > http://host/xyz question mark was part of the regex not punctuation, but not sure the redirect w/o trailing slash is okay. rejiggered to always have the trailing slash: RedirectMatch ^xyz/?(.*) http://xyz.host/$1 -

Re: [users@httpd] RedirectMatch - http://host/xyz[/abc] => http://xyz.host/[abc]

2012-08-17 Thread sebb
On 17 August 2012 15:02, Eric Covener wrote: >> The following works >> >> RedirectMatch ^xyz(.*) http://xyz.host$1 >> >> but suffers from the problem that >> >> http://host/xyz123 > > maybe RedirectMatch ^xyz(/.*)? http://xyz.host$1 That won't match http://host/xyz which should redirect to htt

Re: [users@httpd] RedirectMatch - http://host/xyz[/abc] => http://xyz.host/[abc]

2012-08-17 Thread Eric Covener
> The following works > > RedirectMatch ^xyz(.*) http://xyz.host$1 > > but suffers from the problem that > > http://host/xyz123 maybe RedirectMatch ^xyz(/.*)? http://xyz.host$1 - To unsubscribe, e-mail: users-unsubscr...@httpd.ap

[users@httpd] RedirectMatch - http://host/xyz[/abc] => http://xyz.host/[abc]

2012-08-17 Thread sebb
What's the canonical way to redirect the following? http://host/xyz[/abc] to http://xyz.host/[abc] The following works RedirectMatch ^xyz(.*) http://xyz.host$1 but suffers from the problem that http://host/xyz123 is redirected to http://xyz.host123 which is not intended. I suppose one way

Re: [users@httpd] RedirectMatch

2011-01-17 Thread Jørn
On Monday 17 January 2011 11:35, Matus UHLAR - fantomas wrote: > On 17.01.11 11:31, Jørn wrote: > > Yes, but the probem is that RedirectMatch only check the string to the > > left of the ?-sign. > > I must fix this by chaning the scripts. > > aha! > So, in this case, you will have to use mod_rewrit

Re: [users@httpd] RedirectMatch

2011-01-17 Thread Matus UHLAR - fantomas
> On Monday 17 January 2011 11:27, Matus UHLAR - fantomas wrote: > > On 13.01.11 11:07, Jørn wrote: > > > I got a problem with using RedirectMatch. > > > > > > The following RedirectMatch line works well: > > > RedirectMatch 301 /Foto/Album.*img_([0-9]*)\. > > > "http://www.dahl-stamnes.net/Foto/r_

Re: [users@httpd] RedirectMatch

2011-01-17 Thread Jørn
On Monday 17 January 2011 11:27, Matus UHLAR - fantomas wrote: > On 13.01.11 11:07, Jørn wrote: > > I got a problem with using RedirectMatch. > > > > The following RedirectMatch line works well: > > RedirectMatch 301 /Foto/Album.*img_([0-9]*)\. > > "http://www.dahl-stamnes.net/Foto/r_img.php?img=$1

Re: [users@httpd] RedirectMatch

2011-01-17 Thread Matus UHLAR - fantomas
> On Thu, Jan 13, 2011 at 5:07 AM, Jørn wrote: > > The following RedirectMatch line works well: > > RedirectMatch 301 /Foto/Album.*img_([0-9]*)\. > > "http://www.dahl-stamnes.net/Foto/r_img.php?img=$1"; > > > > But now I want to add another RedirectMatch: > > > > RedirectMatch 301 ^/Foto/show.*al

Re: [users@httpd] RedirectMatch

2011-01-17 Thread Matus UHLAR - fantomas
On 13.01.11 11:07, Jørn wrote: > I got a problem with using RedirectMatch. > > The following RedirectMatch line works well: > RedirectMatch 301 /Foto/Album.*img_([0-9]*)\. > "http://www.dahl-stamnes.net/Foto/r_img.php?img=$1"; > > But now I want to add another RedirectMatch: > > RedirectMatch 3

Re: [users@httpd] RedirectMatch

2011-01-13 Thread Eric Covener
On Thu, Jan 13, 2011 at 5:07 AM, Jørn wrote: > Hello, > > I got a problem with using RedirectMatch. > > The following RedirectMatch line works well: > RedirectMatch 301 /Foto/Album.*img_([0-9]*)\. > "http://www.dahl-stamnes.net/Foto/r_img.php?img=$1"; > > But now I want to add another RedirectMatc

[users@httpd] RedirectMatch

2011-01-13 Thread Jørn
Hello, I got a problem with using RedirectMatch. The following RedirectMatch line works well: RedirectMatch 301 /Foto/Album.*img_([0-9]*)\. "http://www.dahl-stamnes.net/Foto/r_img.php?img=$1"; But now I want to add another RedirectMatch: RedirectMatch 301 ^/Foto/show.*album\=(.*)$ "http://

Re: [users@httpd] RedirectMatch regex question.

2005-06-07 Thread Joshua Slive
On 6/7/05, Michael Bellears <[EMAIL PROTECTED]> wrote: > Wondering if someone can please assist with the following two > RedirectMatch regex's (My regex skills are zilch!) > > RedirectMatch /main.cfm?=page&content&id=946 > http://www.domain.com.au/privacy.html > RedirectMatch /main.cfm?page=unsubs

[users@httpd] RedirectMatch regex question.

2005-06-06 Thread Michael Bellears
Wondering if someone can please assist with the following two RedirectMatch regex's (My regex skills are zilch!) RedirectMatch /main.cfm?=page&content&id=946 http://www.domain.com.au/privacy.html RedirectMatch /main.cfm?page=unsubscribe http://www.domain.com.au/unsubscribe/index.html The ".", "?"