Hi,
How to do this:
RewriteRule ^/offers?id=(.*) /ViewOffer.php?OfferId=$1
RewriteRule ^/offers(.*) /Offers.php$1
That is to say:
if id= is present go to ViewOffer.php
else go to Offers.php
Best regards,
Davi
Hi,
why don't you have your PHP script ViewOffer.php do the redirection? Like:
?php
if (!isset($_REQUEST['id'])) {
header (Location: Offers.php);
}
Regards
Sascha
- Original Message -
From: Davi Leal [EMAIL PROTECTED]
To: users@httpd.apache.org
Sent: Saturday, May 05, 2007 11:04 AM
Sascha Kersken wrote:
why don't you have your PHP script ViewOffer.php do the redirection? Like:
?php
if (!isset($_REQUEST['id'])) {
header (Location: Offers.php);
}
Because we were trying to realize all the URI redesign at the Apache rewrite
layer. The current gnuherds.org URIs suck!
Hi,
Could you tell me what does it mean concretly ?
IfModule ssl_module
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
/IfModule
Because i understand it like that :
if module SSL loaded, so :
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
but what those 2 lines
Hi,
but what those 2 lines mean ?
i did not find something in apache documentation
Actually, it's quite verbose on this:
http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslrandomseed
Regards
Sascha
-
The official
Hi there,
I am currently working with apache 2.0.59. Now in the process of
writing some apache2 add-on C-module (DSO).As you know DSO Modules can
interact with the server core via the Apache2 API. Using that API each
module can access the server's data structures. Up to this
Hi,
I'm trying to make simple url rewriting for my site using mod_rewrite.
The .htaccess:
RewriteEngine On
RewriteRule ^(.*)$ index.php?path=$0
When I test with http://localhost/some/path/here
but instead of the path (some/path/here) I get index.php in the path?!?
I looked in the rewrite.log
On 5/5/07, Davi Leal [EMAIL PROTECTED] wrote:
Does the rewrite engine not take into account the URI parameters? I get:
init rewrite engine with requested uri /offers
instead of
init rewrite engine with requested uri /offers?id=9
In the docs for RewriteRule, see the big box marked
Sorry to spam like this, but just curious if anyone has had a similar
experience?
-Ryan
Ryan Frishberg wrote:
Hey, I'm writing a program to test the performance of apache (we had a
similar problem with lighttpd), and I keep running into a problem with
persistent connections. We make a single
Hi,
sorry but a foolish question. please tell me how to ask a question..as i am
new and worndering to ask a queston ??? please help me i want to ask a
question to user group.. i am registered but dont kknow .. please
Thanks
A Patel
On 5/5/07, Alain Roger [EMAIL PROTECTED] wrote:
Hi,
I'm
Gang,
I am trying to perform a redirect to another server when accessing a single
webpage. Currently there are two sites connected over a WAN that both have
Apache running to serve content. However, just one of these locations contains
user database information (for logging into the
Joshua Slive wrote:
Davi Leal wrote:
Does the rewrite engine not take into account the URI parameters? I get:
init rewrite engine with requested uri /offers
instead of
init rewrite engine with requested uri /offers?id=9
In the docs for RewriteRule, see the big box marked
On Sat, 5 May 2007 05:13:43 +0200
Alain Roger [EMAIL PROTECTED] wrote:
Hi,
I'm quite a rookie under apache 2.2, however i've noticed some changes
between apache 2.0 and apache 2.2 that are from my point of view quite
important.
Really? The user-visible differences are small: the only
On Sat, 2007-05-05 at 14:52 -0700, Dave Henderson wrote:
Gang,
I am trying to perform a redirect to another server when accessing
a single webpage. Currently there are two sites connected over a WAN
that both have Apache running to serve content. However, just one of
these locations
Thank Gaigin. I will do some more research.
The Gaijin [EMAIL PROTECTED] wrote: On Sat, 2007-05-05 at 14:52 -0700, Dave
Henderson wrote:
Gang,
I am trying to perform a redirect to another server when accessing
a single webpage. Currently there are two sites connected over a WAN
that
On 5/5/07, The Gaijin [EMAIL PROTECTED] wrote:
RewriteEngine On
RewriteRule /login.html http://other.server.domain/login_url [R]
This case can be replaced simply with
Redirect /login.html http://other.server.domain/login_url
which doesn't require mod_rewrite.
Joshua.
I am currently working with apache 2.0.59. Now in the process of
writing some apache2 add-on C-module (DSO).As you know DSO Modules can interact
with the server core via the Apache2 API. Using that API each module can access
the server's data structures. Up to this I am fine. But I
On 5/4/07, The Gaijin [EMAIL PROTECTED] wrote:
LocationMatch ~*
Use Location /~ -- it is more efficient and safer in this case.
RewriteEngine On
RewriteLog /var/log/apache2/rewrite.log
RewriteLogLevel 5
RewriteCond %{REQUEST_METHOD}
Thank Joshua
Slive [EMAIL PROTECTED] wrote:.
1. Move your photo.jpg someplace else.
2. Reconfigure apache:http://wiki.apache.org/httpd/Errors/DirectoryAsScript
On 1. It works when I moved image.jpg to htdocs:
http://localhost/image.jpg
On 2. Link suggested:
Alias
19 matches
Mail list logo