Re: [us...@httpd] RewriteRule & jsessionid

2010-11-17 Thread Sébastien Moretti
Hi I experience some problem with apache, mod_rewrite and mod_proxy. I get some timeouts that deny access to the server. Here is the error message I get: (70007)The timeout specified has expired: proxy: error reading status line from remote server XXX [Wed Nov 17 11:5

Re: [us...@httpd] RewriteRule & jsessionid

2010-11-17 Thread Sai A
On Wed, Nov 17, 2010 at 6:34 PM, Sébastien Moretti < sebastien.more...@unil.ch> wrote: > Hi > > I experience some problem with apache, mod_rewrite and mod_proxy. > I get some timeouts that deny access to the server. > Here is the error message I get: > > (70007)The timeout specified has expired: p

[us...@httpd] RewriteRule & jsessionid

2010-11-17 Thread Sébastien Moretti
Hi I experience some problem with apache, mod_rewrite and mod_proxy. I get some timeouts that deny access to the server. Here is the error message I get: (70007)The timeout specified has expired: proxy: error reading status line from remote server XXX [Wed Nov 17 11:57:09 2010] [error] [client

Re: [us...@httpd] RewriteRule : How to retain Apache Host in the url

2010-11-12 Thread Sai A
Tom, Thanks for that correction. I got a little confused. On Fri, Nov 12, 2010 at 4:01 PM, Tom Evans wrote: > On Fri, Nov 12, 2010 at 10:16 AM, Sai A wrote: > > More specifically, look at the > > ProxyPass and ProxyPassReverse directives that are present in mod_proxy. > > > > There is another

Re: [us...@httpd] RewriteRule : How to retain Apache Host in the url

2010-11-12 Thread Tom Evans
On Fri, Nov 12, 2010 at 10:16 AM, Sai A wrote: > More specifically, look at the > ProxyPass and ProxyPassReverse directives that are present in mod_proxy. > > There is another directive called PreserveProxyHost that > you'll have to set to on and the URL won't change in the address bar (HTTP > hea

Re: [us...@httpd] RewriteRule : How to retain Apache Host in the url

2010-11-12 Thread Sai A
More specifically, look at the ProxyPass and ProxyPassReverse directives that are present in mod_proxy. There is another directive called PreserveProxyHost that you'll have to set to on and the URL won't change in the address bar (HTTP header). Sai On Fri, Nov 12, 2010 at 3:20 PM, Green Wang wro

Re: [us...@httpd] RewriteRule : How to retain Apache Host in the url

2010-11-12 Thread Green Wang
you can use mod_proxy On 11/01/2010 03:54 PM, Tushar Chavan wrote: Hi Experts, We have definded rewrite rule as below RewriteEngine on RewriteRule ^/(sap\(.*) http://srmhost.kjo.com.sa:8000/$1 So now whenever url https://apache_host.domain/sap(bD1lbiZjPTAxNiZkPW1pbg==)/bc/bsp/sap/z_ros_self_re

RE: [us...@httpd] RewriteRule : How to retain Apache Host in the url

2010-11-03 Thread Tushar Chavan
Thanks a ton Igor. P flag worked.. Date: Tue, 2 Nov 2010 18:07:26 +1100 From: icici...@gmail.com To: users@httpd.apache.org Subject: Re: [us...@httpd] RewriteRule : How to retain Apache Host in the url Have you tried using the P flag in the RewriteRule? Cheers, Igor On Tue, Nov 2, 2010

Re: [us...@httpd] RewriteRule : How to retain Apache Host in the url

2010-11-02 Thread Igor Cicimov
apache host name i.e srmdevarp01* just like we > do with ProxyPreserveHost. > > Please let me know if there is way to do it. > > Best Regards, > Tushar > > > > Date: Mon, 1 Nov 2010 08:06:39 -0400 > > From: cove...@gmail.com > > To: users@httpd.apache.org

RE: [us...@httpd] RewriteRule : How to retain Apache Host in the url

2010-11-01 Thread Tushar Chavan
Best Regards, Tushar > Date: Mon, 1 Nov 2010 08:06:39 -0400 > From: cove...@gmail.com > To: users@httpd.apache.org > Subject: Re: [us...@httpd] RewriteRule : How to retain Apache Host in the url > > On Mon, Nov 1, 2010 at 3:54 AM, Tushar Chavan > wrote: > > Hi Exper

Re: [us...@httpd] RewriteRule : How to retain Apache Host in the url

2010-11-01 Thread Eric Covener
On Mon, Nov 1, 2010 at 3:54 AM, Tushar Chavan wrote: > Hi Experts, > > We have definded rewrite rule as below > RewriteEngine on > RewriteRule ^/(sap\(.*) http://srmhost.kjo.com.sa:8000/$1 > So now whenever url > https://apache_host.domain/sap(bD1lbiZjPTAxNiZkPW1pbg==)/bc/bsp/sap/z_ros_sel

[us...@httpd] RewriteRule : How to retain Apache Host in the url

2010-11-01 Thread Tushar Chavan
Hi Experts, We have definded rewrite rule as below RewriteEngine on RewriteRule ^/(sap\(.*) http://srmhost.kjo.com.sa:8000/$1 So now whenever url https://apache_host.domain/sap(bD1lbiZjPTAxNiZkPW1pbg==)/bc/bsp/sap/z_ros_self_reg1/main.htm is called, it will re-direct to http://srmho

[us...@httpd] RewriteRule .* - [E=TEMP_SMUSER:%{SSL:OID("2.5.29.17")}] # Subject Alternate Name

2010-10-19 Thread David (Dave) Donnan
Server version: Apache/2.2.4 (Win32) Hello and thanks for your much appreciated help in the past. I'm trying a re-write rule that uses OID "2.5.29.17" - Subject Alternate Name. I've tried various permutations: # 20101019 DD Following doesn't work with result: TEMP_SMUSER="" in getenv.cg

[us...@httpd] RewriteRule E=SMUSER:%{LA-U:REMOTE_USER} works but not E=SMUSER:%{LA-U:SSL_CLIENT_S_DN_EMAIL}

2010-09-29 Thread David (Dave) Donnan
Hello again. I hope I've not overstayed my welcome. RewriteRule .* - [E=SMUSER:%{LA-U:REMOTE_USER}] works for both 80 and 443 (SSL) However, the following doesn't work for either (I understand why it doesn't work for port 80 :-) RewriteRule .* - [E=SMUSER:%{LA-U:SSL_CLIENT_S_DN_EMAIL

Re: [us...@httpd] RewriteRule for requests without additional slashes

2010-07-01 Thread alin vasile
thanks. I completely forgot about the greedy matching. now my qustion looks silly :) From: Eric Covener To: users@httpd.apache.org Sent: Thu, July 1, 2010 10:53:56 PM Subject: Re: [us...@httpd] RewriteRule for requests without additional slashes >    D

Re: [us...@httpd] RewriteRule for requests without additional slashes

2010-07-01 Thread Eric Covener
>    Does anyone know how can a RewriteRule must be written to match only > requests urls that have no slashes except the initial one? For example to > match /index.html, /login.do but not /path/login.jsp or > /home/reports/daily.pdf. IOW "completely non-slash characters between the first slash an

Re: [us...@httpd] RewriteRule for requests without additional slashes

2010-07-01 Thread alin vasile
sorry, I meant RewriteCond and not RewriteRule. From: alin vasile To: users@httpd.apache.org Sent: Thu, July 1, 2010 10:07:59 PM Subject: [us...@httpd] RewriteRule for requests without additional slashes Hi,      Does anyone know how can a RewriteRule must

[us...@httpd] RewriteRule for requests without additional slashes

2010-07-01 Thread alin vasile
Hi,      Does anyone know how can a RewriteRule must be written to match only requests urls that have no slashes except the initial one? For example to match /index.html, /login.do but not /path/login.jsp or /home/reports/daily.pdf. Thanks, Alin

Re: [us...@httpd] RewriteRule failing when changing content-handlers

2010-06-30 Thread Eric Covener
> Out of curiosity, any idea why this would work in a VirtualHost container > but not in the per-dir .htaccess file? My only problem with this arrangement > is that I'd need to restart apache when I make changes at that high of a > level. Dropping in a .htaccess file is much more preferable. when

[us...@httpd] RewriteRule failing when changing content-handlers

2010-06-29 Thread Greg Neujahr
Hey Eric, Thanks for the quick reply and hopefully a step in the right direction. I tested it on my linux box as well, and it's apparently a common thing between the two of 'em, so whatever it is I'm doing (if it's supposed to work) is something I've made a habbit of doing. I'd like to fix t

Re: [us...@httpd] RewriteRule failing on windows when changing content-handlers

2010-06-29 Thread Eric Covener
> [Tue Jun 29 15:45:20 2010] [error] [client 127.0.0.1] script > 'redirect:/oxfordv2/page.php' not found or unable to stat Two big clues in this message. mod_rewrite is meant to revisit this rewritten URL in its "handler" hook, but some other handler a) got there first and b) thought it was suppo

[us...@httpd] RewriteRule failing on windows when changing content-handlers

2010-06-29 Thread Greg Neujahr
I'm having a difficult time figuring out why a RewriteRule isn't working, so I'm turning to you folks for some potential help. The problem is as follows: On a 64 bit Windows 7 machine, I have installed apache in D:\Apache. The root of the web directory is in E:\cyg\wwwroot. I am using a Rew

Re: [us...@httpd] RewriteRule with [P] Flag

2010-04-16 Thread Axel Christiansen
Am 16.04.2010 12:12, schrieb Krist van Besien: > On Wed, Apr 14, 2010 at 11:10 AM, wrote: > >> A request to https://inthewild.org gets forwarded all right to >> http://localhost:9090/index.jsp. The server on localhost:9090 >> itself does a http 302 (redirect) to >> http://localhost:9090/setup/lo

Re: [us...@httpd] RewriteRule with [P] Flag

2010-04-16 Thread Krist van Besien
On Wed, Apr 14, 2010 at 11:10 AM, wrote: > A request to https://inthewild.org gets forwarded all right to > http://localhost:9090/index.jsp. The server on localhost:9090 > itself does a http 302 (redirect) to > http://localhost:9090/setup/login.jsp and returns that to > the browser. > > The brow

Re: [us...@httpd] RewriteRule with [P] Flag

2010-04-14 Thread Eric Covener
On Wed, Apr 14, 2010 at 8:11 AM, Mark Watts wrote: > On Wed, 2010-04-14 at 08:03 -0400, Eric Covener wrote: >> On Wed, Apr 14, 2010 at 6:32 AM,   wrote: >> > On Wed, 14 Apr 2010 05:44:26 -0400, Eric Covener wrote: >> >>> RewriteRule ^(.*)$ http://localhost:9090/index.jsp [P] >> >> >> >>> The brow

Re: [us...@httpd] RewriteRule with [P] Flag

2010-04-14 Thread Mark Watts
On Wed, 2010-04-14 at 08:03 -0400, Eric Covener wrote: > On Wed, Apr 14, 2010 at 6:32 AM, wrote: > > On Wed, 14 Apr 2010 05:44:26 -0400, Eric Covener wrote: > >>> RewriteRule ^(.*)$ http://localhost:9090/index.jsp [P] > >> > >>> The browser ends up with a not working URL: > >>> http://localhost:

Re: [us...@httpd] RewriteRule with [P] Flag

2010-04-14 Thread Eric Covener
On Wed, Apr 14, 2010 at 6:32 AM, wrote: > On Wed, 14 Apr 2010 05:44:26 -0400, Eric Covener wrote: >>> RewriteRule ^(.*)$ http://localhost:9090/index.jsp [P] >> >>> The browser ends up with a not working URL: >>> http://localhost:9090/setup/login.jsp >> >> http://httpd.apache.org/docs/2.2/mod/mod

Re: [us...@httpd] RewriteRule with [P] Flag

2010-04-14 Thread achristiansen
On Wed, 14 Apr 2010 05:44:26 -0400, Eric Covener wrote: >> RewriteRule ^(.*)$ http://localhost:9090/index.jsp [P] > >> The browser ends up with a not working URL: >> http://localhost:9090/setup/login.jsp > > http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreverse I did not mention

Re: [us...@httpd] RewriteRule with [P] Flag

2010-04-14 Thread Eric Covener
> RewriteRule ^(.*)$ http://localhost:9090/index.jsp [P] > The browser ends up with a not working URL: > http://localhost:9090/setup/login.jsp http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreverse -- Eric Covener cove...@gmail.com

[us...@httpd] RewriteRule with [P] Flag

2010-04-14 Thread achristiansen
Dear all, since quite some time every now and then (can i say that ;) ) i get stuck with a rewriting issue. i would like to use the rewrite capabilities with the proxy flag. Example: RewriteEngine on RewriteRule ^(.*)$ http://localhost:9090/index.jsp [P] Assume the server configured with the

Re: [us...@httpd] RewriteRule - webspace vs. filesystem

2010-02-08 Thread Eric Covener
On Mon, Feb 8, 2010 at 8:23 AM, Edgar Frank wrote: > The problem I have is, that Apache complains that /www/index.php > is not found - which is absolutely right, as index.php only > exists in the webspace and not in the filesystem. But I would > expect Apache to consider the Location section inste

[us...@httpd] RewriteRule - webspace vs. filesystem

2010-02-08 Thread Edgar Frank
Hello list, I've got a problem with RewriteRule and the separation of web space and filesystem. I want to rewrite virtual directories on the server to the URL /index.php /index.php exists only inside the webspace and does not reside physically on the webserver. It is forwarded via FastCGI to an

RE: [us...@httpd] RewriteRule and VirtualDocumentRoot: How do they interract ?

2010-01-15 Thread Oliver Schoenborn
> From the doc : > > > This flag is just a hack to enable post-processing of the output of > RewriteRule directives, using Alias, ScriptAlias, Redirect, and other > directives from various URI-to-filename translators > > If I understand well (correct me if I'm wrong), after RewriteRule has > app

Re: [us...@httpd] RewriteRule and VirtualDocumentRoot: How do they interract ?

2010-01-14 Thread Thomas Preud'homme
Le jeudi 14 janvier 2010 19:53:09, Eric Covener a écrit : > On 1/14/10, Thomas Preud'homme wrote: > > Greetings, > > > > === Context === > > What I don't understand is that after the substitution, > > apache look for the file by prepending document_root (/htdocs on my > > server) to the substitu

Re: [us...@httpd] RewriteRule and VirtualDocumentRoot: How do they interract ?

2010-01-14 Thread Eric Covener
On 1/14/10, Thomas Preud'homme wrote: > Greetings, > > === Context === > What I don't understand is that after the substitution, > apache look for the file by prepending document_root (/htdocs on my server) > to > the substitution. But I use VirtualDocumentRoot and no DocumentRoot so that > m

[us...@httpd] RewriteRule and VirtualDocumentRoot: How do they interract ?

2010-01-14 Thread Thomas Preud'homme
Greetings, === Context === I recently had to write a rewrite rule and after a few fail, decided to read carefully online documentation. After understanding the base problem of RewriteRule in .htaccess files (which I did experiment), I put a rule in the vhost config file. The rule seems to wor

Re: [us...@httpd] RewriteRule in neither "foo/.htaccess" nor ".htaccess" can match http://example.com/.../foo

2009-11-24 Thread André Warnier
Jack Bates wrote: I'm struggling a bit with this mod_rewrite rule, I am a bit intimidated by your detailed explanation and the level of expertise required to fully understand your requirements, never mind finding a solution. But reading your post in diagonals gives me the feeling that maybe t

[us...@httpd] RewriteRule in neither "foo/.htaccess" nor ".htaccess" can match http://example.com/.../foo

2009-11-24 Thread Jack Bates
I'm struggling a bit with this mod_rewrite rule, RewriteEngine On RewriteCond %{REQUEST_FILENAME}.html -f RewriteRule . %{REQUEST_FILENAME}.html My goal is, when someone requests http://example.com/.../foo, to respond with "foo.html", if it exists I originally tried doing this with MultiViews, b

Re: [us...@httpd] RewriteRule help please

2009-11-23 Thread bearsfoot
Thanks Phil. You just fixed my issue. Much appreciated. Philip Wigg wrote: > >> RewriteRule products/specials(.*) /products/index.php?view=specials&$1=$2 >> [L] >> >> The rewritten url is close but still has the trailing '='. > > What you've put there is different to what I suggested, sinc

Re: [us...@httpd] RewriteRule help please

2009-11-23 Thread Philip Wigg
> RewriteRule products/specials(.*) /products/index.php?view=specials&$1=$2 [L] > > The rewritten url is close but still has the trailing '='. What you've put there is different to what I suggested, since you've kept the =$2 at the end. I still have a feeling this won't be totally what you need th

Re: [us...@httpd] RewriteRule help please

2009-11-23 Thread bearsfoot
Hi Phil, Thanks for the reply. I changed the rule to use a single (.*) but the result was the same. Here is an example of the url entered .. http://www.mysite.com/products/specials&filter=20 and expecting http://www.mysite.com/products/index.php?view=specials&filter=20 RewriteRule products/

Re: [us...@httpd] RewriteRule help please

2009-11-23 Thread Philip Wigg
> I have the following rewrite rule .. > > RewriteRule products/specials(.*)(.*) > /products/index.php?view=specials&$1=$2 [L] > > http://www.mysite.com/products/specials&filter=20 > --> http://www.mysite.com/products/index.php?view=specials&filter=20= > > The problem is the trailing '=' > > I have

[us...@httpd] RewriteRule help please

2009-11-23 Thread bearsfoot
Hi All, I have the following rewrite rule .. RewriteRule products/specials(.*)(.*) /products/index.php?view=specials&$1=$2 [L] http://www.mysite.com/products/specials&filter=20 --> http://www.mysite.com/products/index.php?view=specials&filter=20= The problem is the trailing '=' I have also t

Re: [us...@httpd] RewriteRule doing Redirect despite not have [R] option ???

2009-10-08 Thread Eric Covener
On Thu, Oct 8, 2009 at 11:15 AM, Markw wrote: > I want this to do a server side redirect and leave the browser as is, but > using Charles Web Debug Proxy I can see it is doing a 302... > > rewrite log message > > 172.16.7.88 - - [08/Oct/2009:15:59:58 +0100] > [172.16.0.141/sid#160478][rid#6b7a48/i

[us...@httpd] RewriteRule doing Redirect despite not have [R] option ???

2009-10-08 Thread Markw
Server version: Apache/2.0.59 Server built: Apr 26 2007 18:33:43 in httpd.conf I have... RewriteLogLevel 1 RewriteLog /WEBS/wkeditions/croner-uk.wkatos.com/logs/mod_rewrite.log RewriteMap productid txt:/usr/users/bv71/wwwroot/seo/product_map.t

Re: [us...@httpd] rewriterule help

2009-09-02 Thread Krist van Besien
On Wed, Sep 2, 2009 at 1:15 PM, Andrew Hole wrote: > It works. However, i'm getting a popup with file save option and I would > like to see the page on Browser. That is probably due to an incorrect content type header. Have a look at what the server sends with an appropriate tool (Firebug or HTTPH

Re: [us...@httpd] rewriterule help

2009-09-02 Thread Andrew Hole
It works. However, i'm getting a popup with file save option and I would like to see the page on Browser. Thanks a lot On Wed, Sep 2, 2009 at 11:41 AM, Krist van Besien wrote: > On Wed, Sep 2, 2009 at 12:02 PM, Andrew Hole > wrote: > > Hi guys! > > > > The following directive doesn't take into

Re: [us...@httpd] rewriterule help

2009-09-02 Thread Krist van Besien
On Wed, Sep 2, 2009 at 12:02 PM, Andrew Hole wrote: > Hi guys! > > The following directive doesn't take into consideration the filename in URL: >   RewriteCond %{DOCUMENT_ROOT}/bin/core/%1 -f >    RewriteCond %{REQUEST_FILENAME} !-f >    RewriteCond %{DOCUMENT_ROOT}/bin/core/%1 -f >    RewriteRu

[us...@httpd] rewriterule help

2009-09-02 Thread Andrew Hole
Hi guys! The following directive doesn't take into consideration the filename in URL: RewriteCond %{DOCUMENT_ROOT}/bin/core/%1 -f In this request the REQUEST_FILENAME has the value: /bin/adt/file.swf but I just want the filename (file.swf). How can I do that? Thanks a lot RewriteCond %{R

Re: [us...@httpd] RewriteRule for case insensitive URL

2009-06-17 Thread Matt Veitas
That seemed to work. I had to modify the rule slightly: RewriteRule ^/foobar(.*) /FooBar$1 [NC,L, R=301] On Wed, Jun 17, 2009 at 9:10 AM, Igor Cicimov wrote: > Or maybe this one > > RewriteCond %{REQUEST_URI} !^/FooBar > RewriteRule ^/foobar(.*) /FooBar$1 [NC,L] > > Igor > > On 6/17/09, Krist va

Re: [us...@httpd] RewriteRule for case insensitive URL

2009-06-17 Thread Igor Cicimov
Or maybe this one RewriteCond %{REQUEST_URI} !^/FooBar RewriteRule ^/foobar(.*) /FooBar$1 [NC,L] Igor On 6/17/09, Krist van Besien wrote: > On Tue, Jun 16, 2009 at 3:33 PM, Matt Veitas wrote: >> Hi >> >> I am attempting to create a rewrite rule for our application and am in >> need of some assi

Re: [us...@httpd] RewriteRule for case insensitive URL

2009-06-16 Thread Krist van Besien
On Tue, Jun 16, 2009 at 3:33 PM, Matt Veitas wrote: > Hi > > I am attempting to create a rewrite rule for our application and am in > need of some assistance. The application is found at the following > URL: https://my.domain.com/FooBar > > We are looking to be able to catch all cases of the path /

Re: [us...@httpd] RewriteRule for case insensitive URL

2009-06-16 Thread André Warnier
Matt Veitas wrote: Hi I am attempting to create a rewrite rule for our application and am in need of some assistance. The application is found at the following URL: https://my.domain.com/FooBar We are looking to be able to catch all cases of the path /FooBar (fooBar, Foobar, foobar, FOOBAR) and

[us...@httpd] RewriteRule for case insensitive URL

2009-06-16 Thread Matt Veitas
Hi I am attempting to create a rewrite rule for our application and am in need of some assistance. The application is found at the following URL: https://my.domain.com/FooBar We are looking to be able to catch all cases of the path /FooBar (fooBar, Foobar, foobar, FOOBAR) and have it redirect to

Re: [us...@httpd] RewriteRule under JkMount location and server variables

2009-05-01 Thread J Channel
> It's ignored because when you proxy content, it doesn't come from any > on-disk directory. The enclosed directives are not applicable. Really? I dont know about it and already build site on this not applicable feature and serve it with apache 1.3 for years. Thanks, you open my eyes =)) > > > --

Re: [us...@httpd] RewriteRule under JkMount location and server variables

2009-05-01 Thread Eric Covener
On Fri, May 1, 2009 at 7:15 AM, J Channel wrote: >     >        Options Indexes FollowSymLinks +Includes >        RewriteEngine on >        RewriteRule ^book/index.my.* ssi/test.shtml [L] >        AllowOverride None >        Order allow,deny >        Allow from all >     >    JkMount /book/* bala

[us...@httpd] RewriteRule under JkMount location and server variables

2009-05-01 Thread J Channel
This config work ok with apache 1.3 ServerName www.localhost.com RewriteEngine on RewriteLog "/opt/logs/httpd_rewrite_log" RewriteLogLevel 2 AddType application/octet-stream .mht AddType text/html .shtml AddType application/vnd.ms-excel .xls AddHandler server-pars

Re: [us...@httpd] RewriteRule with .flv extension

2009-04-08 Thread Brian Mearns
On Wed, Apr 8, 2009 at 12:19 PM, Josh Trutwin wrote: > I'm dealing with something odd and I can't figure out what to make of > it - I have the following rewrite rule: > > RewriteRule > ^([0-9]+)/([a-z0-9]+)/get_flash\.php$ /get_file.php?id=$1&flash=1&key=$2 > [L] > > then a URL liks this /123/2313

[us...@httpd] RewriteRule with .flv extension

2009-04-08 Thread Josh Trutwin
I'm dealing with something odd and I can't figure out what to make of it - I have the following rewrite rule: RewriteRule ^([0-9]+)/([a-z0-9]+)/get_flash\.php$ /get_file.php?id=$1&flash=1&key=$2 [L] then a URL liks this /123/2313412sdfsdf/get_flash.php works fine. BUT if I change my rule to this

Re: [us...@httpd] RewriteRule problem

2009-03-18 Thread André Warnier
Campbell, Lance wrote: RewriteCond %{QUERY_STRING} ^id=(.*) [NC] RewriteRule ^/abc$ /efg/%1 [L] I have tried the above but it still gives me a file not found for abc. RewriteCond %{QUERY_STRING} ^id=(.*) [NC] RewriteRule ^/abc /efg/%1 [L] This also did not work. R

Re: [us...@httpd] RewriteRule problem

2009-03-18 Thread André Warnier
Campbell, Lance wrote: So now I have the following: RewriteCond %{QUERY_STRING} ^abc?id=(.*) [NC] RewriteRule ^abc /efg/%1 [L] This is irrelevant for the second time, because the others gave you the correct solution, but you are still making an error in your regexp : ^abc?id= does not match

RE: [us...@httpd] RewriteRule problem

2009-03-18 Thread Campbell, Lance
%{QUERY_STRING} ^id=(.*) RewriteRule ^/abc /efg/%1 This also failed to work. Any other thoughts. -Original Message- From: Anthony J. Biacco [mailto:abia...@formatdynamics.com] Sent: Wednesday, March 18, 2009 4:04 PM To: users@httpd.apache.org Subject: RE: [us...@httpd] RewriteRule

Re: [us...@httpd] RewriteRule problem

2009-03-18 Thread Eric Covener
> Also at a higher level, if your users type in /abc/def then you want > to internally redirect to /abc?id=def, then you don't even want to > match against a query string.  You're implementing the opposite, where > you identify /abc?id=def and react to it. Reconsidering -- OP is a little ambiguous

Re: [us...@httpd] RewriteRule problem

2009-03-18 Thread Eric Covener
On Wed, Mar 18, 2009 at 5:02 PM, Campbell, Lance wrote: > So now I have the following: > > RewriteCond %{QUERY_STRING} ^abc?id=(.*)  [NC] "abc" isn't part of the query string in your example > RewriteRule ^abc /efg/%1  [L] This depends on http://wiki.apache.org/httpd/RewriteContext Also at a h

RE: [us...@httpd] RewriteRule problem

2009-03-18 Thread Anthony J. Biacco
ssage- From: Campbell, Lance [mailto:la...@illinois.edu] Sent: Wednesday, March 18, 2009 3:03 PM To: users@httpd.apache.org Subject: RE: [us...@httpd] RewriteRule problem So now I have the following: RewriteCond %{QUERY_STRING} ^abc?id=(.*) [NC] RewriteRule ^abc /efg/%1 [L] It still does not wor

RE: [us...@httpd] RewriteRule problem

2009-03-18 Thread Campbell, Lance
: Wednesday, March 18, 2009 3:40 PM To: users@httpd.apache.org Subject: Re: [us...@httpd] RewriteRule problem On Wed, Mar 18, 2009 at 4:38 PM, Campbell, Lance wrote: > RewriteRule ^/abc?id=(.*)   /efg/$1 You need to deal with the query string in a RewriteCond. http://wiki.apache.org/ht

Re: [us...@httpd] RewriteRule problem

2009-03-18 Thread André Warnier
Eric Covener wrote: On Wed, Mar 18, 2009 at 4:38 PM, Campbell, Lance wrote: RewriteRule ^/abc?id=(.*) /efg/$1 You need to deal with the query string in a RewriteCond. http://wiki.apache.org/httpd/RewriteQueryString Eric is of course right, above here. But even if .. I wanted to point out

RE: [us...@httpd] RewriteRule problem

2009-03-18 Thread Anthony J. Biacco
--- From: André Warnier [mailto:a...@ice-sa.com] Sent: Wednesday, March 18, 2009 2:37 PM To: users@httpd.apache.org Subject: Re: [us...@httpd] RewriteRule problem Campbell, Lance wrote: > I want to do convert the below dynamic url to a static url: > > > > http://acme

Re: [us...@httpd] RewriteRule problem

2009-03-18 Thread André Warnier
Campbell, Lance wrote: I want to do convert the below dynamic url to a static url: http://acme.com/abc?id=123 To: http://acme.com/efg/123 I have tried the following: RewriteRule ^/abc?id=(.*) /efg/$1 Try: RewriteRule ^/abc\?id=(.*) /efg/$1 Well, actually maybe not

Re: [us...@httpd] RewriteRule problem

2009-03-18 Thread Eric Covener
On Wed, Mar 18, 2009 at 4:38 PM, Campbell, Lance wrote: > RewriteRule ^/abc?id=(.*)   /efg/$1 You need to deal with the query string in a RewriteCond. http://wiki.apache.org/httpd/RewriteQueryString -- Eric Covener cove...@gmail.com --

[us...@httpd] RewriteRule problem

2009-03-18 Thread Campbell, Lance
I want to do convert the below dynamic url to a static url: http://acme.com/abc?id=123 To: http://acme.com/efg/123 I have tried the following: RewriteRule ^/abc?id=(.*) /efg/$1 I get an error in my apache log: File does not exist: /apacheDocs/http/acme.com/abc I ha

[us...@httpd] RewriteRule and matching URI with *before* rewriting

2009-02-06 Thread Reto Kaiser
Hi, I'm using the Zend PHP Framework with Apache 2. The ZF uses a bootstrap file, so all requests are rewritten to index.php: RewriteRule .* index.php Now I'd like to serve CSS and JS resources dynamically with the index.php. So a request to "/resource/css/test.css" should deliver a CSS file (ec

Re: [us...@httpd] RewriteRule

2008-12-22 Thread Krist van Besien
On Mon, Dec 22, 2008 at 3:26 PM, Andrew Hole wrote: > With P flag i get 404 error code. What does the error log say? Krist -- krist.vanbes...@gmail.com kr...@vanbesien.org Bremgarten b. Bern, Switzerland -- A: It reverses the normal flow of conversation. Q: What's wrong with top-posting? A: T

Re: [us...@httpd] RewriteRule

2008-12-22 Thread Andrew Hole
With P flag i get 404 error code. On Mon, Dec 22, 2008 at 1:00 PM, Bob Ionescu wrote: > 2008/12/22 Andrew Hole : > > I'm trying to setup a RewriteRule to redirect requests to a new different > > server , but I want to keep the original URL on address bar. > > How can I do that? > > Use the P fla

Re: [us...@httpd] RewriteRule

2008-12-22 Thread Bob Ionescu
2008/12/22 Andrew Hole : > I'm trying to setup a RewriteRule to redirect requests to a new different > server , but I want to keep the original URL on address bar. > How can I do that? Use the P flag to force that the request is handled by mod_proxy et al. (reverse proxying). Bob ---

[us...@httpd] RewriteRule

2008-12-22 Thread Andrew Hole
Hi Guys! I'm trying to setup a RewriteRule to redirect requests to a new different server , but I want to keep the original URL on address bar. How can I do that? RewriteEngine on RewriteLog /var/log/httpd/rewrite.log RewriteLogLevel 9 RewriteCond %{QUERY_STRING} msg=online Re

Re: [us...@httpd] RewriteRule

2008-09-28 Thread André Warnier
Alain Roger wrote: Hi, i would like to redirect all requests as following: http://www.mywebsite.com/en/logon/index.php => http://www.mywebsite.com/logon/index.php?lang=en http://www.mywebsite.com/fr/logon/logon.php => http://www.mywebsite.com/logon/logon.php?lang=fr http://www.mywebsite.com/en/

[us...@httpd] RewriteRule

2008-09-28 Thread Alain Roger
Hi, i would like to redirect all requests as following: http://www.mywebsite.com/en/logon/index.php => http://www.mywebsite.com/logon/index.php?lang=en http://www.mywebsite.com/fr/logon/logon.php => http://www.mywebsite.com/logon/logon.php?lang=fr http://www.mywebsite.com/en/logon/hello.php => ht