Mod-rewrite rule help?

Up vote 0 down vote favorite share g+ share fb share tw.

Need a little help with making a rewrite/redirect rule in apache. I'm trying to make it so that any IP address in my list will be redirect to "banned. Php".

My current rule looks like this: RewriteEngine On RewriteCond %{REQUEST_ADDR} ^192\.168\.1\.3$ RewriteCond ${REQUEST_URI}! /banned. Php$ NC RewriteRule .

* site.com/banned.php r=301,L RewriteCond %{QUERY_STRING} (a-z0-9+) NC RewriteRule ^/? $ index. Php?

Action=%1 L So the redirect to banned. Php works if I try to go to the main page, but if I try to go to? Random or another of the second type of rewrites, I don't get redirected to the banned.

Php page. I know I'm missing something simple, but not sure what it is. Thanks!

Apache mod-rewrite rewrite link|improve this question asked 15 hours agoJ_D156.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions