🌍
English
Hi,
i am trying to to a redirect of the login/admin pages .
What I want to do - for example:
The usual yourdomain/admin.php should be to something like yourdomain/myadmin.
Visitors trying to open admin.php will be presented with a 404 error.
This should be possible within a htaccess file, but how?
Any ideas?
Cheers
Ralf
Offline
So the admin page is bound to your ip
And other ppl cant access it
RewriteCond %{REQUEST_URI} ^/(index.php/)?admin/ [NC]
RewriteCond %{REMOTE_ADDR} !^1\.1\.1\.1
RewriteRule ^(.*)$ http://%{HTTP_HOST}/ [R=302,L]
Where 1.1.1.1 is your IP address.
Last edited by amazMint (2018-05-03 09:00:06)
Offline