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
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
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
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
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
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
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
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
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,
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
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/
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
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
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/
\\
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
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
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
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
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.
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
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?
]
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
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
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
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.
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
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
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/(.*)([
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
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/
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
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
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
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
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
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
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
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
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
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
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
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
> -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
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
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.
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.
46 matches
Mail list logo