Wordpress eklentisiz admin yolu değiştirme kodları aşağıdadır, kodları kendinize göre ayarlayabilirsiniz. Konuya yorum yaparak bana destek olabilirsiniz.
.htaccess dosyasına eklenecek kodlar;
RewriteEngine On
RewriteRule ^yeniYol/?$ /wp-login.php?cem [R,L]
RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in_.*$
RewriteRule ^yeniYol/?$ /wp-login.php?cem&redirect_to=/wp-admin/ [R,L]
RewriteRule ^yeniYol/?$ /wp-admin/?cem [R,L]
RewriteCond %{SCRIPT_FILENAME} !^(.*)admin-ajax\.php
RewriteCond %{HTTP_REFERER} !^(.*)http://localhost/wordpress/wp-admin
RewriteCond %{HTTP_REFERER} !^(.*)http://localhost/wordpress/wp-login\.php
RewriteCond %{HTTP_REFERER} !^(.*)http://localhost/wordpress/yeniYol
RewriteCond %{QUERY_STRING} !^cem
RewriteCond %{QUERY_STRING} !^action=logout
RewriteCond %{QUERY_STRING} !^action=rp
RewriteCond %{QUERY_STRING} !^action=postpass
RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in_.*$
RewriteRule ^.*wp-admin/?|^.*wp-login\.php /wordpress/izinYok [R,L]
RewriteCond %{QUERY_STRING} ^loggedout=true
RewriteRule ^.*$ /wp-login.php?cem [R,L]
Yorumlar