Announcement

#1 2018-03-04 12:11:43

Ralf
Member
Dorsten-Lembeck
2012-05-08
154

Any htaccess experts out there?

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


There are only two kinds of music:
Rock and Roll

Offline

 

#2 2018-05-03 08:55:46

amazMint
Member
2018-05-03
1

Re: Any htaccess experts out there?

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

 

#3 2018-05-06 08:56:20

Ralf
Member
Dorsten-Lembeck
2012-05-08
154

Re: Any htaccess experts out there?

Thanks a lot


There are only two kinds of music:
Rock and Roll

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2018 · Contact