A
A
alla202015-10-10 19:26:35
htaccess
alla20, 2015-10-10 19:26:35

What to write in .htaccess to change the page for a specific IP?

Hello dear programmers and admins!
Please tell me what should be written in .htaccess for such a situation:
a user with IP XXX.XXX.XXX.XXX who logged into the root of the site receives an internal page of the form /page/333/ instead of the root index. It is highly desirable without changing the address in the address bar.
If this is important, then I’ll clarify, the site is on WordPress. The user is the parser requesting "GET / HTTP/1.0".
I understand that they will still mate, but I want to complicate the life of the bastards. I understand that you can simply deny access, but I want to feed the parser with outdated information for some time.
That's how cunning I am)))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2015-10-10
@mytmid

for the mod_rewrite module specify:

RewriteCond %{REMOTE_ADDR} ^127\.0\.0\.1$ [NC]
RewriteRule ^.*$ yourpage.php [L]

where:
127\.0\.0\.1 - ip
yourpage.php - file to be uploaded

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question