I am a novice, please help me, all i want is to redirect all other users to 403.php
page except for few specified IP address.
I am working on a wordpress site so www.example.com/wp-admin
is the page (directory) which i want to redirect
I am a novice, please help me, all i want is to redirect all other users to 403.php
page except for few specified IP address.
I am working on a wordpress site so www.example.com/wp-admin
is the page (directory) which i want to redirect
You must be logged in to post a comment.
You can put this code in your htaccess
Don’t forget to replace
x
characters (you can add same line for each except IP you want).Also, you want to redirect to
403.php
which means you want to forbid access (403).You could use
F
flag (forbidden) instead