On Wed, Oct 22, 2008 at 12:57 PM, Mário Gamito [EMAIL PROTECTED] wrote:
Hi,
I have this site that has in its root directory a .htaccess file with
the following rewritings:
IfModule mod_rewrite.c
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond
That would break the software :(
On Wed, Oct 22, 2008 at 8:27 PM, Eric Covener [EMAIL PROTECTED] wrote:
On Wed, Oct 22, 2008 at 12:57 PM, Mário Gamito [EMAIL PROTECTED] wrote:
Hi,
I have this site that has in its root directory a .htaccess file with
the following rewritings:
IfModule
On Wed, Oct 22, 2008 at 3:31 PM, Mário Gamito [EMAIL PROTECTED] wrote:
That would break the software :(
How about a RewriteCond looking at %{REQUEST_URI} in the docroot that
protects the rule from running on whatever in that subdir you don't
want touched? I can't say I fully understand what
the
/srv/www/maintenace in the AppAmor everything work fine.
Thanks again for the respond.
Best Regards,
Y
- Original Message -
From: Jeff McAdams [EMAIL PROTECTED]
To: users@httpd.apache.org
Sent: Thursday, October 2, 2008 1:55:38 PM (GMT-0500) America/New_York
Subject: Re: [EMAIL PROTECTED
Yoom Nguyen wrote:
I have this rewrite rule implemented and it will work fine if I access to Apache
web server directly. But, if the traffic route to a load balancer (F5) then
to the Apache server
it won't work. The browser will trying to open the maintenance.html page and nothing will
On Wed, Sep 17, 2008 at 2:49 PM, Yoom Nguyen [EMAIL PROTECTED] wrote:
DocumentRoot /srv/www/maintenance/
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* -[F]
RewriteRule ^/(.*)$ maintenance.html [R=302,NC,L]
Add a / before maintenance.html, and Protect the
2008/9/17 Eric Covener [EMAIL PROTECTED]:
On Wed, Sep 17, 2008 at 2:49 PM, Yoom Nguyen [EMAIL PROTECTED] wrote:
DocumentRoot /srv/www/maintenance/
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* -[F]
RewriteRule ^/(.*)$ maintenance.html [R=302,NC,L]
Add a
Eric,
That was it, I need that RewriteCond.
Thank you so much for your help.
Y
- Original Message -
From: Eric Covener [EMAIL PROTECTED]
To: users@httpd.apache.org
Sent: Wednesday, September 17, 2008 3:40:15 PM (GMT-0500) America/New_York
Subject: Re: [EMAIL PROTECTED] Rewrite Rule
Eric Covener wrote:
On Wed, Sep 17, 2008 at 2:49 PM, Yoom Nguyen [EMAIL PROTECTED] wrote:
DocumentRoot /srv/www/maintenance/
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* -[F]
RewriteRule ^/(.*)$ maintenance.html [R=302,NC,L]
Add a / before
On Wed, Sep 17, 2008 at 4:02 PM, André Warnier [EMAIL PROTECTED] wrote:
(you can do the latter via your regex, but it's usually simpler to
guard it the other way)
RewriteRule !^/maintenance\.html$ /maintenance.html [R=302,NC,L]
It quickly gets unamangeable as you need to add captures
Eric Covener wrote:
On Wed, Sep 17, 2008 at 4:02 PM, André Warnier [EMAIL PROTECTED] wrote:
(you can do the latter via your regex, but it's usually simpler to
guard it the other way)
RewriteRule !^/maintenance\.html$ /maintenance.html [R=302,NC,L]
It quickly gets unamangeable as you need
On Wed, Sep 17, 2008 at 4:58 PM, André Warnier [EMAIL PROTECTED] wrote:
Eric Covener wrote:
On Wed, Sep 17, 2008 at 4:02 PM, André Warnier [EMAIL PROTECTED] wrote:
(you can do the latter via your regex, but it's usually simpler to
guard it the other way)
RewriteRule !^/maintenance\.html$
On Wed, Jun 11, 2008 at 21:23, [EMAIL PROTECTED] wrote:
Is there a simple rewrite rule to change all space (and/or %20's) in a URL
to underscores (_) ??
RewriteRule ^(.*)\s(.*)$ $1_$2 [N]
This rule will (if present) replace on space with an underscore, after
which ruler processing is
Could yo ube more specific? Is the web application configured with /
as base URL or with /portal/ as base URL? Do you want to hide the
/portal path for your users, of for the web application?
Maybe my proxy configuration will give you more of an idea. The site
has a custom port and /portal
On Thu, May 22, 2008 at 3:35 PM, Scott Moseman [EMAIL PROTECTED] wrote:
Could yo ube more specific? Is the web application configured with /
as base URL or with /portal/ as base URL? Do you want to hide the
/portal path for your users, of for the web application?
Maybe my proxy configuration
On Tue, May 20, 2008 at 10:56 PM, Scott Moseman [EMAIL PROTECTED] wrote:
I'm trying to hide the /portal/ path for a website behind the scenes
using mod_proxy. I had to use the RewriteEngine because the website
(not under rmy control) uses some absolute URL references in the code,
and if I
On 09/08/07, Lalit Kapoor [EMAIL PROTECTED] wrote:
Hello,
I am new to apache community.
Welcome :-)
I need to put rewrite rule in such a way that http://community.brand.com
should end up at
http://community.brand.com/base/index.jspa.
This rather depends on what you mean by 'end up at'. If
Thanks.
Will try and share results. I am using main server and will be putting rules
directly
in virtual host block.
On 8/9/07, Vincent Bray [EMAIL PROTECTED] wrote:
On 09/08/07, Lalit Kapoor [EMAIL PROTECTED] wrote:
Hello,
I am new to apache community.
Welcome :-)
I need to put
On 7/10/07, Vincent Bray [EMAIL PROTECTED] wrote:
On 11/07/07, Paul Kuykendall [EMAIL PROTECTED] wrote:
I am trying to get a rewrite rule working that will take the value
from an HTTP header and use the value to create a new target
destination for the HTTP request. An example of what I'm
On 11/07/07, Paul Kuykendall [EMAIL PROTECTED] wrote:
I am trying to get a rewrite rule working that will take the value
from an HTTP header and use the value to create a new target
destination for the HTTP request. An example of what I'm trying to do
follows:
Original HTTP request being sent
Hi,
If your https host is not accessible directly, then do you have a
virtualhost seted up listening on 443?
Gabriel
Lalit Kapoor
[EMAIL
Subject
Re: [EMAIL PROTECTED] ReWrite Rule help
Please respond to required
[EMAIL PROTECTED
On 1/31/07, Kailash Vyas [EMAIL PROTECTED] wrote:
Hi
I need some help regarding rewrite rule.
for example http://example.com/kailash/test should redirect to
http://example.com/test?name=kailash
I have written this rule for redirection
RewriteRule ^([^/]+)/([^/]+)/?$
Axel-Stéphane SMORGRAV wrote:
Could you give some explanations wrt. your RewriteCond ? I have never seen
this kind of expressions before.
Yes. \1 is a regEx internal back reference containing everything matched
in the first group (/test/.+)
So assuming a request of /test/index.html (=value
This wouldn't work (RewriteCond) since $2 and $3 are not known
at this stage of rewriting process yet, but I'm still working on it
Krist van Besien wrote:
On 5/26/06, Mariusz Handke [EMAIL PROTECTED] wrote:
Thanks for suggestion, that's what I will do, but I still think there
should be other
: Mariusz Handke [mailto:[EMAIL PROTECTED]
Sent: Monday, May 29, 2006 12:37 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] rewrite rule
This wouldn't work (RewriteCond) since $2 and $3 are not known at this stage of
rewriting process yet, but I'm still working on it
Krist van Besien
Mariusz Handke wrote:
This wouldn't work (RewriteCond) since $2 and $3 are not known
at this stage of rewriting process yet, but I'm still working on it
- That won't work. You can't use back references from mod_rewrite in a
RegEx.
- They're known, as Axel-Stéphane already said.
- You must
Could you give some explanations wrt. your RewriteCond ? I have never seen
this kind of expressions before.
-ascs
-Original Message-
From: Robert Ionescu [mailto:[EMAIL PROTECTED]
Sent: Monday, May 29, 2006 7:55 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] rewrite rule
On 5/25/06, Mariusz Handke [EMAIL PROTECTED] wrote:
Thanks, I modified your proposition as follows:
Location /test
RewriteEngine On
RewriteRule ^(.*)/([^/]*\.)(html|htm|php)$
/test-redir.php?page=/test/$2$3 [L]
/Location
Hmmm. This rewrites
Thanks for suggestion, that's what I will do, but I still think there
should be other way to do it, within apache scope.
Krist van Besien wrote:
You need to do this differently. The way I would do this is change my
php script so it includes the different pages in one page, in stead of
a
Thanks, I modified your proposition as follows:
Location /test
RewriteEngine On
RewriteRule ^(.*)/([^/]*\.)(html|htm|php)$
/test-redir.php?page=/test/$2$3 [L]
/Location
and rule works ok, but produced result (two frames: top one containing
original file,
On 5/22/06, Mariusz Handke [EMAIL PROTECTED] wrote:
Hi,
Can anyone help me to create, or explain how to get around with rewrite
rules, please. The thing to do is:
in: http://host/dir/file
out: http://host/script.php?p=/dir/file
RewriteRule ^(.*)$/script.php?p=$1
Krist
--
[EMAIL
Hi,
I am also new to this.
Can you check the following rule
RewriteEngine On
RewriteRule ^/(.*) http://host/script.php?p=$1
I think, what ever is there after the hostname will be $1
for ex:
http://abcd.com/pets
$1 will be pets.
I am also looking at URL rewriting.
Please check that and let me
On 2/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
RewriteRule ^/cgi-bin/java\-rmi\.cgi$
http://auohsepcb11.oracleoutsourcing.com:10280/servlet/ServletHandler [P]
/VirtualHost
But the server response is not returned to the initial client. which calls
Hi,
Thank your for your response.
Here is the source where I get those directives:
http://www.geocities.com/dmh2000/ApacheTomcatRMI.htm
What I try to achieve is to implement HTTP tunneling for RMI.
I implemented it successfully on my laptop locally.
I have Apache2/Tomcat and latest jdk.
But When
-Original Message-
From: Kailash Vyas [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 25. Januar 2006 12:08
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] rewrite rule
hi all,
I am working on rewrite rule for a website and need some help on it.
I need all the requests for php
-Original Message-
From: Kailash Vyas [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 25. Januar 2006 14:17
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] rewrite rule
Hi
RewriteRule ^property/(.*)$http://example.com/index/$1
I have written this rule
Yes there is a way. The Apache manual pages are pretty explicit about it. This
has also been a recurrent question on this mailing list. I suggest that you do
a search on some chosen keywords.
Among others posts, you will find this one:
http://www.apache-httpd.com/msg/19283.html
BR
-ascs
38 matches
Mail list logo