Re: [EMAIL PROTECTED] mod_rewrite problem

2007-08-05 Thread Yves Goergen
On 04.08.2007 18:25 CE(S)T, Joshua Slive wrote: Once you know that you need to use mod_rewite, there is no point in fooling around with mod_setenvif. It is simpler to do everything in mod_rewrite. Or avoid it entirely. My point with SetEnv[If] was to only enter the hostname once and not in

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-08-05 Thread Joshua Slive
On 8/5/07, Yves Goergen [EMAIL PROTECTED] wrote: On 04.08.2007 18:25 CE(S)T, Joshua Slive wrote: Once you know that you need to use mod_rewite, there is no point in fooling around with mod_setenvif. It is simpler to do everything in mod_rewrite. Or avoid it entirely. My point with

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-08-05 Thread Yves Goergen
On 05.08.2007 16:23 CE(S)T, Joshua Slive wrote: On 8/5/07, Yves Goergen [EMAIL PROTECTED] wrote: On 04.08.2007 18:25 CE(S)T, Joshua Slive wrote: Once you know that you need to use mod_rewite, there is no point in fooling around with mod_setenvif. It is simpler to do everything in mod_rewrite.

[EMAIL PROTECTED] mod_rewrite problem

2007-08-04 Thread Yves Goergen
Hello, I'm using mod_rewrite to correct some URLs on my web server, running Apache 2.0. But I have a strange problem with it. First, here's the rules I have set: SetEnvIf Host .+ desired_hostname=beta.unclassified.de SetEnvIfNoCase Host ^beta\.unclassified\.de$ !desired_hostname

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-08-04 Thread Joshua Slive
On 8/4/07, Yves Goergen [EMAIL PROTECTED] wrote: Hello, I'm using mod_rewrite to correct some URLs on my web server, running Apache 2.0. But I have a strange problem with it. First, here's the rules I have set: SetEnvIf Host .+ desired_hostname=beta.unclassified.de SetEnvIfNoCase

[EMAIL PROTECTED] mod_rewrite problem

2007-06-04 Thread José Ramón López
Hi List! I am trying to configure a rule with mod_rewrite, which allow me to change the value of one script parameter. I want the script to foward me to an error page when introducing service=wfs in the request The sevice=wfs parameter can be in all positions This is my line: RewriteRule

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-06-04 Thread Krist van Besien
On 6/4/07, José Ramón López [EMAIL PROTECTED] wrote: Hi List! I am trying to configure a rule with mod_rewrite, which allow me to change the value of one script parameter. I want the script to foward me to an error page when introducing service=wfs in the request The sevice=wfs parameter

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-03-08 Thread Israel Brewster
Just got a response from the developer of the PHP script (serendipity). Turns out the problem lies there, and not with the rewrite rule. Apparently what's going on is that the php script uses the REQUEST_URI to determine what to display. If it doesn't recognize the REQUEST_URI (as is the

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-03-08 Thread matt farey
Israel Brewster wrote: Just got a response from the developer of the PHP script (serendipity). Turns out the problem lies there, and not with the rewrite rule. Apparently what's going on is that the php script uses the REQUEST_URI to determine what to display. If it doesn't recognize the

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-03-08 Thread Israel Brewster
On Mar 8, 2007, at 8:33 AM, matt farey wrote: yeah, if you compare the number and type of rewrites for this package with the way that wordpress used to operate, there is a lot of correlation, instead now wordpress uses a much simpler form of rewrite which directs the REQUEST_URI to the

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-03-08 Thread matt farey
Israel Brewster wrote: On Mar 8, 2007, at 8:33 AM, matt farey wrote: yeah, if you compare the number and type of rewrites for this package with the way that wordpress used to operate, there is a lot of correlation, instead now wordpress uses a much simpler form of rewrite which directs the

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-03-07 Thread Vincent Bray
On 08/03/07, Israel Brewster [EMAIL PROTECTED] wrote: Looking at the rewrite log shows the following entries: xxx.xxx.xxx.xxx - - [07/Mar/2007:08:28:03 -0900] [izzy.homeip.net/ sid#1802648][rid#1838c38/initial] (2) init rewrite engine with requested uri /nagios xxx.xxx.xxx.xxx - -

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-03-07 Thread Israel Brewster
Thanks for your response and suggestions. On Mar 7, 2007, at 9:48 AM, Vincent Bray wrote: Hi, welcome to rewrite-in-htaccess pain and suffering. As you're able to use RewriteLog, why put rewrite rules in htaccess? When I tried that my RewriteRules stopped working entirely :P I suspect that

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-03-07 Thread Vincent Bray
On 08/03/07, Israel Brewster [EMAIL PROTECTED] wrote: Thanks for your response and suggestions. On Mar 7, 2007, at 9:48 AM, Vincent Bray wrote: Hi, welcome to rewrite-in-htaccess pain and suffering. As you're able to use RewriteLog, why put rewrite rules in htaccess? When I tried that my

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-03-07 Thread Israel Brewster
[snip] In this case, ^nagios never matches because the per-directory prefix isn't stripped. ^/nagios is what you need, in addition to simillar changes for the rest of your rules. Ok, yeah- that made the rewrite rules start matching when in the httpd.conf file, unfortunately the behavior I'm

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-03-07 Thread Vincent Bray
On 08/03/07, Israel Brewster [EMAIL PROTECTED] wrote: Ok, yeah- that made the rewrite rules start matching when in the httpd.conf file, unfortunately the behavior I'm getting with that particular rule is the same. Maybe it's time to consider a different approach entirely. Like, posting the

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-03-07 Thread Israel Brewster
On Mar 7, 2007, at 1:16 PM, Vincent Bray wrote: Like, posting the rest of your rules, perhaps? As you're rewriting to a php script, are you able to edit it to show a dump of the environment? phpinfo(); die(); does that job. Also, are there any Alias directives for nagios? Seeing your config in

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-03-07 Thread Vincent Bray
On 08/03/07, Israel Brewster [EMAIL PROTECTED] wrote: Oh, sure. Sorry- not trying to make things difficult here, it's just that I spent several hours yesterday working on the issue, so I'm a bit frustrated, and quite possibly not thinking straight any more :P. Anyway, the rewrite rules I'm

Re: [EMAIL PROTECTED] mod_rewrite problem

2006-03-09 Thread Matthew Claridge
On Fri, Mar 03, 2006 at 02:58:44PM +, Matthew Claridge wrote: I'm using version 2.0.46, with Resin (not that important whats behind apache...). I have the following config set up to rewrite some elements of our dynamic URLs: RewriteEngine On ProxyMaxForwards 200

[EMAIL PROTECTED] mod_rewrite problem

2006-03-03 Thread Matthew Claridge
Hi, I've got a bit of an issue with mod_rewrite and I was hoping someone could give me a little help :-) I'm using version 2.0.46, with Resin (not that important whats behind apache...). I have the following config set up to rewrite some elements of our dynamic URLs: RewriteEngine

Re: [EMAIL PROTECTED] mod_rewrite problem

2006-03-03 Thread Noah Robin
On Fri, Mar 03, 2006 at 02:58:44PM +, Matthew Claridge wrote: I'm using version 2.0.46, with Resin (not that important whats behind apache...). I have the following config set up to rewrite some elements of our dynamic URLs: RewriteEngine On ProxyMaxForwards 200

Re: [EMAIL PROTECTED] mod_rewrite problem

2006-03-03 Thread Robert Ionescu
Matthew Claridge wrote: The problem is that our URLs include hashes ('#'), which are escaped as '%23' in the actual URL. What seems to be happening, from looking at the rewrite log file, is that Apache successfully processes all those rewrite rules, but in the process of actually processing

[EMAIL PROTECTED] mod_rewrite problem

2006-02-20 Thread Tezyn Drasdin
I have been having some problems with creating a RewriteRule using mod_rewrite. I keep getting attacks that look like this:GET /cache/index2.php?_REQUEST[option]=com_content_REQUEST[Itemid]=1GLOBALS=mosConfig_absolute_path=

Re: [EMAIL PROTECTED] mod_rewrite problem

2006-02-20 Thread Robert Ionescu
Tezyn Drasdin wrote: RewriteRule ^*.(php|cgi|rb|htm|html)? |(_(REQUEST|SERVER|COOKIE)[*]$ YouGo' n2Jail.html Is this the correct syntax to get my desired result? The QueryString does not match against the pattern of the RewriteRule, you must use a condition in order to check the QueryString

[EMAIL PROTECTED] mod_rewrite problem with cgi-bin pages`

2006-02-08 Thread Bruce Hodo
I was revamping a website to use SSI, and changed all of the default pages to .shtml. I wrote an htaccess file (based upon the Apache 2.0 URL Rewriting Guide example Backward Compatibility for to migration) to do the following: -check to see if a file was of the format

Re: [EMAIL PROTECTED] mod_rewrite problem

2005-08-19 Thread Krist van Besien
On 8/19/05, Nick Gushlow [EMAIL PROTECTED] wrote: Hey guys, I've got a working set of conditions and a rule, but I'm struggling to add another condition/rule. The code below is working and turns any request for http://domain/word into http://domain/index.php?site=$1 RewriteLog

RE: [EMAIL PROTECTED] mod_rewrite problem

2005-08-19 Thread Axel-Stéphane SMORGRAV
I suggest the following configuration: RewriteLog /var/www/epp/logs/epp.rewrite.log RewriteLogLevel 9 RewriteEngine on RewriteCond %{REQUEST_URI} !\.(php|gif|jpg|html?|css|js|doc|pdf)$ RewriteRule ^/([^/]*)/?$ /index.php?epp=$1 [L] I compacted the rewrite conditions and simplified the

RE: [EMAIL PROTECTED] mod_rewrite problem

2005-08-19 Thread Axel-Stéphane SMORGRAV
Message- From: Axel-Stéphane SMORGRAV Sent: Friday, August 19, 2005 11:21 AM To: users@httpd.apache.org Subject: RE: [EMAIL PROTECTED] mod_rewrite problem I suggest the following configuration: RewriteLog /var/www/epp/logs/epp.rewrite.log RewriteLogLevel 9 RewriteEngine on RewriteCond

RE: [EMAIL PROTECTED] mod_rewrite problem

2005-08-19 Thread Nick Gushlow
On Fri, 2005-08-19 at 11:24 +0200, Axel-Stphane SMORGRAV wrote: RewriteLog /var/www/epp/logs/epp.rewrite.log RewriteLogLevel 9 RewriteEngine on RewriteCond %{REQUEST_URI} !\.(php|gif|jpg|html?|css|js|doc|pdf)$ RewriteRule ^/([^/]*)/?$ /index.php?epp=$1 [L] I compacted the rewrite

Re: [EMAIL PROTECTED] mod_rewrite problem

2005-08-19 Thread Nick Gushlow
First off thanks for your help, I clicked reply not reply all before so I wanted to say thanks publicly so I don't look too ungrateful. :-) On Fri, 2005-08-19 at 10:57 +0200, Krist van Besien wrote: RewriteCond %{REQUEST_URI} !^.*abbey(.*) A better way to short circuit is just to add a

Re: [EMAIL PROTECTED] mod_rewrite problem

2005-08-19 Thread Noah
On Fri, Aug 19, 2005 at 11:24:49AM +0200, Axel-St?phane SMORGRAV wrote: Uh Uh. Forgot to add the abbey stuff: RewriteLog /var/www/epp/logs/epp.rewrite.log RewriteLogLevel 9 RewriteEngine on RewriteCond %{REQUEST_URI} !\.(php|gif|jpg|html?|css|js|doc|pdf)$ RewriteCond %{REQUEST_URI}

RE: [EMAIL PROTECTED] mod_rewrite problem

2005-08-19 Thread Axel-Stéphane SMORGRAV
To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] mod_rewrite problem On Fri, Aug 19, 2005 at 11:24:49AM +0200, Axel-St?phane SMORGRAV wrote: Uh Uh. Forgot to add the abbey stuff: RewriteLog /var/www/epp/logs/epp.rewrite.log RewriteLogLevel 9 RewriteEngine on RewriteCond %{REQUEST_URI