[EMAIL PROTECTED] Mod Rewrite and Mod JK

2008-02-08 Thread Campbell, Lance
I am finding that mod_rewrite does not get triggered is a URL happens to map to Mod JK. Is there a way to give first dibs to mod_rewrite? I have mod_rewrite loaded before mod_jk. Thanks, Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illi

Re: [EMAIL PROTECTED] Mod rewrite - can it tell if a requested file exists

2008-02-08 Thread Krist van Besien
On Feb 8, 2008 7:47 AM, Campbell, Lance <[EMAIL PROTECTED]> wrote: > Requested URL: http://acme.com/abc/123 > > > > Sudo Code: > > > > If the URL matches /abc/* > > Then rewrite the URL to /zzz/abc/123 > > if the file exists then done (leave the requested file as /zzz/abc/123) > > else

Re: [EMAIL PROTECTED] Mod rewrite - can it tell if a requested file exists

2008-02-07 Thread Christian Folini
Hi Lance, Have you checked the documentation? http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritecond Christian On Fri, Feb 08, 2008 at 12:47:52AM -0600, Campbell, Lance wrote: > Apache 2.2 > > > > I know it is possible to chain mod rewrite rules. Is it possible with > mod rewrite

[EMAIL PROTECTED] Mod rewrite - can it tell if a requested file exists

2008-02-07 Thread Campbell, Lance
Apache 2.2 I know it is possible to chain mod rewrite rules. Is it possible with mod rewrite to test for the existence of a requested file? Example: Requested URL: http://acme.com/abc/123 Sudo Code: If the URL matches /abc/* Then rewrite the URL to /zzz/abc/123 if th

[EMAIL PROTECTED] Mod Rewrite Rules For more than 1 querystring

2007-12-27 Thread Ki Song
We have dynamic urls that we "hand code" into some of our static pages. This is an example: http://www.knifecenter.com/kc_new/store_store.html?ttl=Boy%20Scout%20Knives&; srch=eqKEYWORDdatarq%3Dscout Here are the parameters: Ttl = title of page Srch = beginning of search parameter list Eq = equals

Re: [EMAIL PROTECTED] mod rewrite...

2007-11-26 Thread Krist van Besien
Hello Dan, I'm seeing two problems, On Nov 26, 2007 1:20 AM, Dan Brown <[EMAIL PROTECTED]> wrote: > RewriteEngine On > RewriteBase / > > #S-PHP4 REDIRECT > RewriteCond %{SERVER_PORT} ^81$ > RewriteRule ^(.*) /$1 [S=3] 1) Are you sure you want to skip thhee rules here? You're skippi

[EMAIL PROTECTED] mod rewrite...

2007-11-25 Thread Dan Brown
I don't deal with rewrite rules very often so I've got a bit of trouble getting this going. I'm converting a number of sites over to PHP5 from PHP4. A second instance of Apache with PHP4 is running on my server to accommodate sites still not tested/converted to PHP5. This is part of an htacce

Re: [EMAIL PROTECTED] Mod Rewrite Help

2007-08-20 Thread Jack Stone
From: "Joshua Slive" <[EMAIL PROTECTED]> Reply-To: users@httpd.apache.org To: users@httpd.apache.org, [EMAIL PROTECTED] Subject: Re: [EMAIL PROTECTED] Mod Rewrite Help Date: Sun, 19 Aug 2007 13:28:31 -0400 On 8/19/07, Jack Stone <[EMAIL PROTECTED]> wrote: > I've

Re: [EMAIL PROTECTED] Mod Rewrite Help

2007-08-19 Thread Joshua Slive
On 8/19/07, Jack Stone <[EMAIL PROTECTED]> wrote: > I've wondered if is is necessary to use the RewriteEngine every time another > redirect set is used like this for example: This is one of those questions that I wonder why you bother asking. Why not just try it and see if it works. But anyway,

Re: [EMAIL PROTECTED] Mod Rewrite Help

2007-08-19 Thread Jack Stone
From: "Joshua Slive" <[EMAIL PROTECTED]> Reply-To: users@httpd.apache.org To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] Mod Rewrite Help Date: Fri, 17 Aug 2007 09:58:12 -0400 On 8/17/07, wi <[EMAIL PROTECTED]> wrote: > You'll need to configure a virt

Re: [EMAIL PROTECTED] Mod Rewrite Help

2007-08-17 Thread Joshua Slive
On 8/17/07, wi <[EMAIL PROTECTED]> wrote: > You'll need to configure a virtual host listening to the 8765 interface. > Once you've done that, you will simply need to put together a rewrite to > send requests to /abc.html to whatever target url you want. > > Start by reading http://httpd.apache.org/

Re: [EMAIL PROTECTED] Mod Rewrite Help

2007-08-17 Thread wi
You'll need to configure a virtual host listening to the 8765 interface. Once you've done that, you will simply need to put together a rewrite to send requests to /abc.html to whatever target url you want. Start by reading http://httpd.apache.org/docs/2.2/vhosts/ >From there, configuring the rewr

[EMAIL PROTECTED] Mod Rewrite Help

2007-08-16 Thread Manivel Arumugam
Hi, There is a need to configure a rewrite rule for the following source url to point to a target url. Source url - http://usearch.3m.com:8765/abc.html If you closely look at the above url, you can see a port number in it. I'm not that expert with rewrites and have never done this in the past ei

Re: [EMAIL PROTECTED] Mod Rewrite assistance sought (hoped for :-)

2007-07-17 Thread Julius Thyssen
On 7/17/07, Robert Granvin <[EMAIL PROTECTED]> wrote: Unfortunately, no (on the content root). Basically, the "secure" (https) portion is a shared subdomain, hence the directory approach. Think of the structure this way: /var/www/site1 /var/www/site2 /var/www/siten /var/www/secure/ \\

Re: [EMAIL PROTECTED] Mod Rewrite assistance sought (hoped for :-)

2007-07-17 Thread Robert Granvin
Unfortunately, no (on the content root). Basically, the "secure" (https) portion is a shared subdomain, hence the directory approach. Think of the structure this way: /var/www/site1 /var/www/site2 /var/www/siten /var/www/secure/ \\ Robert J. Granvin

Re: [EMAIL PROTECTED] Mod Rewrite assistance sought (hoped for :-)

2007-07-17 Thread Julius Thyssen
On 7/17/07, Robert Granvin <[EMAIL PROTECTED]> wrote: Standard web site is at "http://foo.site.com/..."; while the secure URL is at "https://secure.site.com/foo/..."; So you can't use the same document root for both hosts? If you need different content, except for some folders, simply use the A

[EMAIL PROTECTED] Mod Rewrite assistance sought (hoped for :-)

2007-07-17 Thread Robert Granvin
OK, I know one can get into trouble real quick with mod_rewrite (or, more likely in my case, not know it well enough to realize that I can do something in a very simple way...) Therefore, seeking expert opinion on how to accomplish this... Due to a way that an ISP has secure (https:) vs. insec

Re: [EMAIL PROTECTED] Mod Rewrite - Modify Website

2007-07-07 Thread Vincent Bray
On 07/07/07, Nainil Chheda <[EMAIL PROTECTED]> wrote: Is there any Mod Rewrite Rule or any other Rule which would allow me to put a "header file" in all the web pages without me modifying the contents of each web pages? mod_rewrite rewrites URLs and other aspects of requests like environment va

[EMAIL PROTECTED] Mod Rewrite - Modify Website

2007-07-07 Thread Nainil Chheda
Hello, Is there any Mod Rewrite Rule or any other Rule which would allow me to put a "header file" in all the web pages without me modifying the contents of each web pages? Can I do something in the ".htaccess" file example for that? Best Regards Nainil Chheda Knowledge Research Specialist.

Re: [EMAIL PROTECTED] Mod rewrite F flag

2007-04-27 Thread Joshua Slive
On 4/27/07, Erez Segal <[EMAIL PROTECTED]> wrote: In my server, I want to reject access to files that exist. (to some php files that are allways included via other files, and never needs to be accessed directly). I use: RewriteRule ^(.*)$ - [F] The trouble is it sends 403 - forbidden. I want it

[EMAIL PROTECTED] Mod rewrite F flag

2007-04-26 Thread Erez Segal
In my server, I want to reject access to files that exist. (to some php files that are allways included via other files, and never needs to be accessed directly). I use: RewriteRule ^(.*)$ - [F] The trouble is it sends 403 - forbidden. I want it to send 404 - file not found. how can this be done?

RE: [EMAIL PROTECTED] mod rewrite question

2006-11-06 Thread Bumbia, Kamran
] Sent: Monday, November 06, 2006 2:39 PM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] mod rewrite question I had already posted this on the configuration list, but got no replies, so I thought someone here might be able to better answer. I've got an odd thing happening and I'm no

[EMAIL PROTECTED] mod rewrite question

2006-11-06 Thread Sean Brown
I had already posted this on the configuration list, but got no replies, so I thought someone here might be able to better answer. I've got an odd thing happening and I'm not sure why. I've got the following mod rewrite conditions and rules for the default site on my apache box: Options Foll

Re: [EMAIL PROTECTED] Mod-rewrite not finding text that is found by regex test site.

2006-06-28 Thread Michael Daly
On 28 Jun 2006 at 15:35, Joshua Slive wrote: > Then it is unlikely this is a PCRE issue. I really don't know what > the problem here is, although I'd suggest posting the whole RewriteLog with > loglevel 9 for a request, just for interest sake. I got it figured out. It looks like mod_rewrite is

Re: [EMAIL PROTECTED] Mod-rewrite not finding text that is found by regex test site.

2006-06-28 Thread Joshua Slive
On 6/28/06, Michael Daly <[EMAIL PROTECTED]> wrote: On 28 Jun 2006 at 10:39, Joshua Slive wrote: > Can you verify if you get the same result if you put that regex on its own > in a RewriteRule (rather than in a big chain)? Interestingly, it works on its own, but not with the preceding rules.

Re: [EMAIL PROTECTED] Mod-rewrite not finding text that is found by regex test site.

2006-06-28 Thread Michael Daly
On 28 Jun 2006 at 10:39, Joshua Slive wrote: > Can you verify if you get the same result if you put that regex on its own > in a RewriteRule (rather than in a big chain)? Interestingly, it works on its own, but not with the preceding rules. I tried just the immediately preceding rule and cond an

Re: [EMAIL PROTECTED] Mod-rewrite not finding text that is found by regex test site.

2006-06-28 Thread Joshua Slive
On 6/27/06, Michael Daly <[EMAIL PROTECTED]> wrote: On 27 Jun 2006 at 16:45, Joshua Slive wrote: > On 6/26/06, Michael Daly <[EMAIL PROTECTED]> wrote: > > I'm trying to catch camelCase names. The mod_rewrite log file > > shows: > > > > RewriteCond: input='^/cgi-sys/cgiwrap/guille/wiki.pl/fooBar

Re: [EMAIL PROTECTED] Mod-rewrite not finding text that is found by regex test site.

2006-06-27 Thread Michael Daly
On 27 Jun 2006 at 16:45, Joshua Slive wrote: > On 6/26/06, Michael Daly <[EMAIL PROTECTED]> wrote: > > I'm trying to catch camelCase names. The mod_rewrite log file > > shows: > > > > RewriteCond: input='^/cgi-sys/cgiwrap/guille/wiki.pl/fooBar' > > pattern='^/cgi-sys/cgiwrap/guille/wiki.pl/(.*)([

Re: [EMAIL PROTECTED] Mod-rewrite not finding text that is found by regex test site.

2006-06-27 Thread Joshua Slive
On 6/26/06, Michael Daly <[EMAIL PROTECTED]> wrote: I'm trying to catch camelCase names. The mod_rewrite log file shows: RewriteCond: input='^/cgi-sys/cgiwrap/guille/wiki.pl/fooBar' pattern='^/cgi-sys/cgiwrap/guille/wiki.pl/(.*)([a-z])([A-Z])(.*)' => not-matched Testing at www.regular-expressi

[EMAIL PROTECTED] Mod-rewrite not finding text that is found by regex test site.

2006-06-26 Thread Michael Daly
I'm trying to catch camelCase names. The mod_rewrite log file shows: RewriteCond: input='^/cgi-sys/cgiwrap/guille/wiki.pl/fooBar' pattern='^/cgi-sys/cgiwrap/guille/wiki.pl/(.*)([a-z])([A-Z])(.*)' => not-matched Testing at www.regular-expressions.info/javascriptexample.html gives: %1=/cgi-sys/

Re: [EMAIL PROTECTED] Mod-Rewrite within a Mod-Rewrite

2006-05-09 Thread Krist van Besien
On 5/8/06, David Blomstrom <[EMAIL PROTECTED]> wrote: This is the rewrite rule for my Reference section, which works: RewriteRule ^Reference/([a-zA-Z0-9()_/-]+)/?$ Reference/index.php?ref=$1 [L] I'd like to also create a similar Glossary section, like this: RewriteRule ^Glossary/([a-zA

RE: [EMAIL PROTECTED] Mod-Rewrite within a Mod-Rewrite

2006-05-09 Thread Axel-Stéphane SMORGRAV
remove the / as in [a-zA-Z0-9()_-]. -ascs From: David Blomstrom [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 2:16 AM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] Mod-Rewrite within a Mod-Rewrite This is the rewrite rule for my Reference section

[EMAIL PROTECTED] Mod-Rewrite within a Mod-Rewrite

2006-05-07 Thread David Blomstrom
This is the rewrite rule for my Reference section, which works: RewriteRule ^Reference/([a-zA-Z0-9()_/-]+)/?$ Reference/index.php?ref=$1 [L] I'd like to also create a similar Glossary section, like this: RewriteRule ^Glossary/([a-zA-Z0-9()_/-]+)/?$ Glossary

Re: [EMAIL PROTECTED] mod rewrite redirect if NOT in URL

2006-04-25 Thread Krist van Besien
On 4/25/06, John Nichel <[EMAIL PROTECTED]> wrote: > Joshua Slive wrote: > > On 4/25/06, John Nichel <[EMAIL PROTECTED]> wrote: > >> Hi, I usually have no problem redirecting based on what is in the URL, > >> but now I'm trying to redirect all pages in a site to one page on the > >> same site. I ha

Re: [EMAIL PROTECTED] mod rewrite redirect if NOT in URL

2006-04-25 Thread Joshua Slive
On 4/25/06, John Nichel <[EMAIL PROTECTED]> wrote: > Hi Joshua, thanks for the response. Unfortunately it doesn't seem to > be working for me. Right now I have this : > > RewriteEngine On > RewriteBase / > RewriteCond %{Request_URI} !^/redirect\.html [NC] > RewriteRule ^/$ /redirect.html > > An

Re: [EMAIL PROTECTED] mod rewrite redirect if NOT in URL

2006-04-25 Thread John Nichel
Joshua Slive wrote: On 4/25/06, John Nichel <[EMAIL PROTECTED]> wrote: Hi, I usually have no problem redirecting based on what is in the URL, but now I'm trying to redirect all pages in a site to one page on the same site. I have to exclude that one page from the redirection process else I get a

Re: [EMAIL PROTECTED] mod rewrite redirect if NOT in URL

2006-04-25 Thread Joshua Slive
On 4/25/06, John Nichel <[EMAIL PROTECTED]> wrote: > Hi, I usually have no problem redirecting based on what is in the URL, > but now I'm trying to redirect all pages in a site to one page on the > same site. I have to exclude that one page from the redirection process > else I get an infinite loop

[EMAIL PROTECTED] mod rewrite redirect if NOT in URL

2006-04-25 Thread John Nichel
Hi, I usually have no problem redirecting based on what is in the URL, but now I'm trying to redirect all pages in a site to one page on the same site. I have to exclude that one page from the redirection process else I get an infinite loop. I've tried numerous combinations of the following, bu

RE: [EMAIL PROTECTED] mod rewrite not working

2006-04-20 Thread Axel-Stéphane SMORGRAV
ile /etc/httpd/run/httpd.pid? Why don't you just talk to your administrator? -ascs -Original Message- From: Paulo J. Matos [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 19, 2006 11:21 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] mod rewrite not working Here's my

Re: [EMAIL PROTECTED] mod rewrite not working

2006-04-19 Thread Paulo J. Matos
ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var > ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var > ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var > > > > > # > # The following directives modify normal HTTP response behavio

Re: [EMAIL PROTECTED] mod rewrite not working

2006-04-19 Thread Paulo J. Matos
esn't need to worry about # IP addresses. This is indicated by the asterisks in the directives below. # # Please see the documentation at # http://httpd.apache.org/docs-2.0/vhosts/> # for further details before you try to setup virtual hosts. # # You may use the command line option '-S' to v

Re: [EMAIL PROTECTED] mod rewrite not working

2006-04-18 Thread Paulo J. Matos
On 18/04/06, Boyle Owen <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Paulo J. Matos [mailto:[EMAIL PROTECTED] > > Sent: Dienstag, 18. April 2006 14:52 > > To: users@httpd.apache.org > > Subject: [EMAIL PROTECTED] mod rewrite not working

RE: [EMAIL PROTECTED] mod rewrite not working

2006-04-18 Thread Boyle Owen
> -Original Message- > From: Paulo J. Matos [mailto:[EMAIL PROTECTED] > Sent: Dienstag, 18. April 2006 14:52 > To: users@httpd.apache.org > Subject: [EMAIL PROTECTED] mod rewrite not working > > Hi all, > > My server is running version 2.0.49 and it has the L

[EMAIL PROTECTED] mod rewrite not working

2006-04-18 Thread Paulo J. Matos
Hi all, My server is running version 2.0.49 and it has the LoadModule for mod_rewrite in its config file but when I had .htaccess with: RewriteEngine On RewriteRule ^(.*)$ http://localhost:8080/$1 I get the following in the log: [Tue Apr 18 12:41:02 2006] [alert] [client 146.193.36.49] /home/pocm

[EMAIL PROTECTED] mod rewrite conditions question

2005-09-22 Thread brian papa
I'm using mod rewrite and it's working just fine and dandy. But, I want to deploy it in different enviornments that use different virtual hosts. So right now I have the Rewrite Condition - RewriteCond %{HTTP_HOST} (.*).bpapa.mysite.com For my local machine, which works fine but that's kinda ugly.

[EMAIL PROTECTED] Mod-Rewrite: Changing + to -, _ or .

2005-08-20 Thread David Blomstrom
Someone wrote the following mod-rewrite rules for me: RewriteEngine On RewriteRule ^test\.htm$ test.php [L] RewriteRule ^stacks/([a-zA-Z]+)/?$ stacks/index.php?taxon=$1 [L] RewriteRule ^kids/stacks/([a-zA-Z]+)/?$ kids/stacks/index.php?taxon=$1 [L] RewriteRule ^topics/([a-zA-Z+]+)/?$ topics/index.