[EMAIL PROTECTED] RewriteEngine directive

2008-06-05 Thread Malka Cymbalista
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

Re: [EMAIL PROTECTED] RewriteEngine directive

2008-06-05 Thread Krist van Besien
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

Re: [EMAIL PROTECTED] RewriteEngine directive

2008-06-05 Thread Malka Cymbalista
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

Re: [EMAIL PROTECTED] RewriteEngine directive

2008-06-05 Thread Krist van Besien
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

[EMAIL PROTECTED] RewriteEngine on creates a 403 Forbidden error

2008-02-22 Thread thomas Armstrong
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

Re: [EMAIL PROTECTED] RewriteEngine on creates a 403 Forbidden error

2008-02-22 Thread thomas Armstrong
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

[EMAIL PROTECTED] RewriteEngine

2007-05-05 Thread Davi Leal
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

Re: [EMAIL PROTECTED] RewriteEngine

2007-05-05 Thread Sascha Kersken
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

Re: [EMAIL PROTECTED] RewriteEngine

2007-05-05 Thread Davi Leal
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!

Re: [EMAIL PROTECTED] RewriteEngine

2007-05-05 Thread Joshua Slive
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

Re: [EMAIL PROTECTED] RewriteEngine

2007-05-05 Thread Davi Leal
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