If I want to put Rewrite directives into specific Directory sections, do I
have to put the RewriteEngine directive into each of the sections or can I put
it somewhere else in the configuration file where I will not have to repeat it
in each directory section.
Thanks for any help.
--
Malka
On Thu, Jun 5, 2008 at 11:09 AM, Malka Cymbalista
[EMAIL PROTECTED] wrote:
If I want to put Rewrite directives into specific Directory sections, do I
have to put the RewriteEngine directive into each of the sections or can I
put it somewhere else in the configuration file where I will not
Thanks for your reply. I actually read the documentation which is where I
learned that I can put Rewrite directives in the directory section. My
question is if there is any way to get around putting
RewriteEngine on
in each directory section. I have RewriteEngine on in the config file
On Thu, Jun 5, 2008 at 3:40 PM, Malka Cymbalista
[EMAIL PROTECTED] wrote:
Thanks for your reply. I actually read the documentation which is where I
learned that I can put Rewrite directives in the directory section. My
question is if there is any way to get around putting
RewriteEngine on
Hi.
I'm experiencing one problem with Apache2 on Linux. If
I insert a RewriteEngine On line in .htaccess, webpages
return a 403 Forbidden Error.
I inserted these lines in 'httpd.conf':
Directory /var/www/httpdocs
Options Indexes FollowSymLinks
AllowOverride All
FCGIWrapper
What does the apache error log say?
[Fri Feb 22 10:03:38 2008] [error] [client 103.160.51.28] Options
FollowSymLinks or SymLinksIfOwnerMatch is off
which implies that RewriteRule directive is forbidden:
/var/www/httpdocs/phpinfo.php
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
Subject: [EMAIL PROTECTED] RewriteEngine
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
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!
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
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
11 matches
Mail list logo