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
!
Davi Leal wrote:
That is to say:
if ?id= is present go to ViewOffer.php
else go to Offers.php
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
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