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
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:
>>
>
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:
>
>
> RewriteEngine On
> RewriteBase /
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
>
Hi,
I have this site that has in its root directory a .htaccess file with
the following rewritings:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
SecFilterEngine off
Now, I want to password protect a sudirect
ject: Re: [EMAIL PROTECTED] Rewrite rule with F5 redirect to https
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'
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
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 displa
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 display and
it won't give
On Thu, Oct 2, 2008 at 4:27 AM, howard chen <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Is it possible to do the following, just using sort of rewrite rules
> in httpd.conf,
>
> E.g.http://www.example.com/foo
>
> ALGO:
>
> If a file foo.html exist
>rewrite to target.html
> Else
>404
Hello,
Is it possible to do the following, just using sort of rewrite rules
in httpd.conf,
E.g.http://www.example.com/foo
ALGO:
If a file foo.html exist
rewrite to target.html
Else
404 not found
The foo is just a dynamic variables...
Thanks.
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)
>>> Rew
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: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 captu
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 maintenance.htm
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 PR
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
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 Pro
I am using Apache2 on SuSe 10 ES
My redirect rule get my webserver go into a loop.
I need to bring a production server down for a maintenance. So when this
happen I want the apache server to
redirect everything from this particular production domain to a new
DocumentRoot to display
Hello,
in Apache 1.3, we use rewrite rules like this one:
RewriteRule ^/website1(.*)$ /portal/page/portal/website1/$1 [PT]
The problem is, it does not work when there is more than one space in
URL (fe.: website1/subpage 1/subpage 2). The result is http error 413.
I guess, it is related to PT fl
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 i
Is there a simple rewrite rule to change all space (and/or %20's) in a URL
to underscores (_) ??
Thanks,
Dan
-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.ht
Hello list!
I am working on a login system and I'm using htaccess for access
restrictions. I have a script that generates the htaccess file and I
think it is pretty secure but I want to have yours opinions
(so dont mind the generation of the file itself, only the rewrite rules).
I use ip restrict
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 con
> 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 /porta
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'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 don't remove the /portal/ reference it obviously breaks the
site.
RewriteEngine
Hi,
during my recent re-install of our server (it is running Apache 2.2)
i changed my username from old_uname to new_uname. I would like that
my webaddress is still accessible under the old address
http://host/~old_uname
Looking through the docs I decided to go with the rewrite routine. I
Hello list!
I am working on a admin site and I'm using htaccess for access
restrictions. I have a script that generates the htaccess file and I
think it is pretty secure but I want to have yours opinions..
I use ip restrictions, and cookie restrictions. I use standard php
session for generating a
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
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
Hello,
I am new to apache community.
I need to put rewrite rule in such a way that
http://community.brand.comshould end up at
http://community.brand.com/base/index.jspa.
Please see if you have any such rule available or please provide some
pointer for the same.
Thanks,
Lalit Kapoor
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
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,
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 to http://myhost.domain/ containing the header
MyRo
PM
Subject
Re: [EMAIL PROTECTED] ReWrite Rule help
Please respond to required
cc
PM
Subject
[EMAIL PROTECTED] ReWrite Rule help
Please respond to required
[EMAIL PROTECTED]
e.org
Hi,
We hav
PM
Subject
[EMAIL PROTECTED] ReWrite Rule help
Please respond to
Hi,
We have written Rewrite Rule to direct HTTP traffic to HTTPS page.
It works as : http://sitename.com ---> https://sitename.com + CA
siteminder login ->http://sitename.com ( after authentication )
Here is the rule:
**# URL rewrite to redirect access to /entrycheck/login.html
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 ^([^/]+)/([^/]+)/?$http://example.com/
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 ^([^/]+)/([^/]+)/?$http://example.com/$2?name=$1
This works fine but if the url is http://
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 o
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
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 u
: 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
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
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 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 incl
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 frames
On 5/25/06, Mariusz Handke <[EMAIL PROTECTED]> wrote:
Thanks, I modified your proposition as follows:
RewriteEngine On
RewriteRule ^(.*)/([^/]*\.)(html|htm|php)$
/test-redir.php?page=/test/$2$3 [L]
Hmmm. This rewrites /test/index.html to
test-redir.php?p
Thanks, I modified your proposition as follows:
RewriteEngine On
RewriteRule ^(.*)/([^/]*\.)(html|htm|php)$
/test-redir.php?page=/test/$2$3 [L]
and rule works ok, but produced result (two frames: top one containing
original file, and bottom one used for s
On 5/23/06, Om <[EMAIL PROTECTED]> wrote:
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.
correct.
Rewrite rule
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 k
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 P
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
(need it to maintain some statistics for mirrored websites)
Thanks in advance
--
Regards,
Mariusz Handke [MJH1-6BONE
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
On 2/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> RewriteRule ^/cgi-bin/java\-rmi\.cgi$
> http://auohsepcb11.oracleoutsourcing.com:10280/servlet/ServletHandler [P]
>
>
> But the server response is not returned to the initial client. which calls
> http://oexdev.oracleoutsourcing.com/cgi-b
Hi Apache gurus,
I have got Apache running on auohsepcb11.oracleoutsourcing.com:10280
The site is accesible thorugh URL oexdev.oracleoutsourcing.com with is the BIG
IP mapping to the Internal
auohsepcb11.oracleoutsourcing.com:10280
When I try to setup rewriting like that:
ProxyRequests On
Rewr
> -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
&g
-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
> -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 h
hi all,
I am working on rewrite rule for a website and need some help on it.
I need all the requests for php pages to be handled by index page.
for example urls
http://example.com/xyz/1/2/3
http://example.com/abc/1/2/3
should be handled by http://example.com/index.php
thanks,
kailash
-
-Original Message-
From: Holger Schmieder [mailto:[EMAIL PROTECTED]
Sent: Monday, October 10, 2005 8:06 AM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] Rewrite-rule with other variables
Hello,
Is there a way to us other apache-vars in rewrite rules. Escpecialy i like to
use the SSL
Hello,
Is there a way to us other apache-vars in rewrite rules. Escpecialy i like to
use the SSL-Vars: there is a var named SSL_CLIENT_S_DN_O or SSL_CLIENT_S_DN_CN.
These vars i like to use in a rewrite rule.
Thanks for every idea.
Holger
--
62 matches
Mail list logo