Forum Moderators: phranque
[edited by: Ocean10000 at 5:39 pm (utc) on Sep 18, 2014]
[edit reason] examplified [/edit]
rewriterule ^index\.html "http\:\/\/utilipath\.com\/index\.php" [R=301,L] #4a94724cc2bc0
Redirect 301 /about.php http://example.com/history.php
RewriteCond %{QUERY_STRING} ^p1=about?
the question mark in a regular expression means the previous character or capture group is optional.
i think it is not required in your application.
rewritecond %{HTTP_HOST} ^www.Example.com$ [OR]
rewritecond %{HTTP_HOST} ^Example.com$
RewriteCond %{HTTP_HOST} ^(www\.)?Example\.com but two ids in the URL is not working
RewriteCond %{QUERY_STRING} (^|&)param1=val1($|&)
RewriteCond %{QUERY_STRING} (^|&)param2=val2($|&)
RewriteRule blahblah
(^|&) and ($|&) * mean "this parameter-and-value set might be the very first thing in the query string, the very last thing in the query string, or separated by & from additional parameter-and-value sets". p1=about&p2=management