I’m trying to create a rewrite condition in .htaccess file to check if url contains a parameter p that is set and parameter p=about or p=contact.
In case, if ?p=about or ?p=contact, the RewriteRule that is below should NOT be berformed.
Could anybody help me with RewriteCond?
RewriteCond %{REQUEST_URI} (?p=about_us|?p=contact)
does NOT work.
The RewriteCond below will match if the query string does not have a
pparam with a value ofabout usorcontacti.e the following rule will not execute if it has a p=about usorcontact