not able to forbidden url
we have to forbidden certain url based on condition.
for example if url contains /us/en/xyz/
and doesnot have query param view=true we have to forbidden the url.
RewriteCond %{QUERY_STRING} !view=true
RewriteCond %{REQUEST_URI} ^.*/us/en/xyz/.*
RewriteRule .* - [F]
but this is not working.
Can you please suggest the solution for this.