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 > RewriteEngin

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 11:09 AM, Malka Cymbalista <[EMAIL PROTECTED]> wrote: > If I want to put Rewrite directives into specific 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

[EMAIL PROTECTED] RewriteEngine directive

2008-06-05 Thread Malka Cymbalista
If I want to put Rewrite directives into specific 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 Cymbalista We

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

2008-02-22 Thread thomas Armstrong
O_O You are right. Thank you very much, Joshua. Some lines below I inserted a "Options ExecCGI" line. Enjoy your weekend On Fri, Feb 22, 2008 at 7:23 PM, Joshua Slive <[EMAIL PROTECTED]> wrote: > > On Fri, Feb 22, 2008 at 1:11 PM, thomas Armstrong <[EMAIL PROTECTED]> wrote: > > > What doe

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

2008-02-22 Thread Joshua Slive
On Fri, Feb 22, 2008 at 1:11 PM, thomas Armstrong <[EMAIL PROTECTED]> wrote: > > 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: >

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 -

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

2008-02-22 Thread Joshua Slive
On Fri, Feb 22, 2008 at 12:58 PM, thomas Armstrong <[EMAIL PROTECTED]> wrote: > 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". What does the apache error log say? Joshua. --

[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': Options Indexes FollowSymLinks AllowOverride All FCGIWrapper /var/www/httpdocs/bin/php

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

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 "Qu

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: > > 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 Sascha Kersken
Hi, why don't you have your PHP script ViewOffer.php do the redirection? Like: - Original Message - From: "Davi Leal" <[EMAIL PROTECTED]> To: Sent: Saturday, May 05, 2007 11:04 AM Subject: [EMAIL PROTECTED] RewriteEngine Hi, How to do this: Re

[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 --