url rewrite via httacess for file in root
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\.mysite\.com [NC]
RewriteRule (.*) https://mysite.com/$1 [L,R=301]
RewriteRule ^directory1/page$ /directory1/page.php?&Search=Search - WORKS
RewriteRule ^posts$ posts.php?Search= DOES NOT
It returns
https://mysite.com/posts/?Search=