Hides the WordPress login screen without plugins

One of the basic security measures in WordPress is to hide the access screen and / or WordPress registry, to avoid brute force attacks and simply make it more difficult for hackers.

The reason

The reason why it is important to hide the WordPress login screen is because most hackers use ] searchers seeking addresses of type /wp-login.php or / wp-admin / accessible in which to launch their automatic detection machines and user test and passwords .

By hiding your login screen for something other than the WordPress standard you remove thousands of these lazy attackers using applications to hack installations by WordPress.

The solution (s)


A very common solution for the WordPress administrator is to use security plugins such as iThemes Security or All in One WP Security which include utilities to hide the screen access, and it's not bad solution.

But what I propose today is get the same without plugins in case you do not need the other thrice ] utilities of the security plugins.

The code

What we are going to do is create a redirection of the WordPress access screen to a URL of our choice. For this we will use the file .htaccess .

Search it in the root directory of your WordPress installation and open it with your favorite FTP application or from the panel of your hosting.

Next adds the following lines better before where are the rewrite from WordPress ( #BEGIN WORDPRESS ):

Important notes

] The above code is an example, so there are things you must change :

  • On line 2 you must change milogin by the slug of your personalized access URL ( ] access entry whatever you want). The idea is that your access URL will be from here https://yourdomain.com/milogin or whatever you have chosen, for example, https://yourdomain.com/ access .
  • On lines 2 and 7 you must change the key with 123abc for something else. It's a hidden key that hackers will not see. The only rule is to use the same in both lines and use only letters and numbers.

And that's it. Save the changes and check that it works. If after saving you see a error 500 on your website it will be that something has been wrong with the code, please review it and modify it.

Loading …

That may also help you:

Internal Server Error / Internal server error

One of the errors that gives less information at the time of showing itself, and consequently more scare, is the terrifying one Server internal error or, if it leaves in English, Internal Server Error .

One would think that, being the server, the only solution is, then, to call server, the provider of your hosting, and is not badly thought.

In any case is a bloody mistake, because you know that something is not right, but it gives you no clue what is broken

But in reality does not have to be an error of your hosting, they can be many things so we are going to see the possible culprits of an internal error of the server and how to fix it in our web WordPress.

What causes an internal server error?

There are several po sibles culprits namely:

  • Plugins
  • Topic
  • WordPress installation
  • File .htaccess
  • PHP memory
  • Your hosting

To know what is the culprit my advice is to follow this sequence of actions:

Regenerate the file .htaccess

To eliminate the biggest suspect of an internal error of the server, Not the only one, I always start reviewing the file .htaccess .

The problem with this file is that there are many plugins that add lines so that sometimes guess what could have caused the problem is complicated especially if you have no knowledge of servers.

So the easiest, and sure, is to do the following:

  1. Access via FTP or the cPanel of your hosting and rename the current file .htaccess to something else, for example antigua.htaccess
  2. If you go to your site and the internal error of the server has been fixed, access your WordPress desktop, that is, at tudominio.es/wp-admin/
  3. Ve a Settings> Permanent links and Saves changes without modifying any settings.

What you have done is force WordPress to generate a new file .htaccess ] clean only with the WordPress rules, and by the way you know it was something in the old.htaccess what caused the error.

Now you have to check what was in that file , that's why you have the copy, which caused the error.

Disable the plugins

The next possible culprit is the plugins simply because can load functions that insert lines in the file .htaccess or break WordPress and all your installation if there is a problem of pr o

As we will not have access to the administration, access your installation of WordPress by FTP or cPanel and rename the folder plugins that is, change the folder that is in the path / wp-content / plugins / to something else, for example / wp-content / plugins_rotos /

What you do with this is disable all plugins automatically ]well you do not, WordPress, not finding the standard path where the plugins are installed.

Visit your site, and if the server's internal error has been fixed, rename the plugins folder to its original name. [19659006] Now you can access the WordPress desktop again, but with all the plugins inactive.

The following you already know, or imagine, right? You have to activate plugins one by one and checking which is causing the internal server error or Internal Server Error .

Once located, to deactivate it, rename your folder or delete it directly by FTP or the panel of your hosting, get in touch with the developer to let them know and offer you a solution, and look for an alternative plugin that offers the same functionality but without errors.

Changes theme … temporarily

If the plugins are not, also the active theme could cause an internal error of the server .

And it is that the themes not only make your web look beautiful and functional, also include (increasingly) internal functions, practically plugins which like your plugins can cause an internal server error.

Here the solution is similar to the previous one, and we will take advantage of ] a trick not very known WordPress, at least not as well known as I would like .

Again, access your installation via FTP or cPanel and check if, in addition to the currently active topic, you have installed a recent default theme of WordPress; I mean the Twenty Something .

If you do not have any of these installed download it from the official WordPress themes directory and upload it to your WordPress installation themes folder ( / wp-content / themes / ).

Once this is done rename the current theme folder to whatever you want . For example, from / wp-content / themes / my-theme / to / wp-content / themes / my-theme-broken / .

In a few seconds WordPress will detect that the current theme is not available in the path stored in the database and it will change to the first default theme that it finds installed, pure WordPress magic .

Now visit your site to check if this has managed to fix the server's internal error.

If so, talk to the developer, get a clean copy of your favorite theme or look for another that offers the same but without errors.

Upload the memory of PHP

] Another possible culprit can be that you have little memory for PHP a directive that is usually marked by default by hosting companies, but that we can manipulate to a certain extent.

If none of the above has worked this could be the problem, so we will try to force r memory available for PHP the programming language used by WordPress, its plugins and issues massively.

This is so because they can match processes on your website at a given time that exceed that available memory, and force a internal error of the server.

It can be, for example, an automated task of a plugin that coincides with the publication of an entry or go to know.

Whatever it is, we will increase the limit of the memory of PHP to check if it was that. To achieve this we have to try to bypass the limits imposed by the server, which we can achieve in several ways.

Increase the PHP memory limit from .htaccess

Add to the file .htaccess the following line :

Save the changes and check to see if the server's internal error was fixed.

Increase the PHP memory limit from wp-config.php

If the above does not work for you, delete that line and add this one to your file wp-config.php :

Again, save the changes and check your website to see if you no longer have the Internal Server Error of the noses.

Increase the memory limit to PHP from php.ini

If you have full access to all the routes of your hosting, locate the PHP parameter configuration file, called php.ini and change the PHP memory limit line to these values:

If not you have access to the file path php.ini original you can create yourself one in the folder wp-admin and add the following:

And if all else fails … call your hosting

If none of the above solves the problem talk to your hosting provider, with your hosting and inform them. They have access to all your server, to the error logs and can more easily determine what caused the problem .

In addition, you can increase, even temporarily, the available memory, so you can review the steps that we have seen previously.

I hope this guide has helped you solve some Internal Server Error or internal server error . If that's the case, share how you managed it with everyone, so you'll help others too.

Loading …

That may also help you:

Solutions to the blank screen and / or error 500 when accessing WordPress

There are several situations in which you may find with an ugly blank screen when accessing the WordPress administration, one of them especially worrying is when it comes with a server error 500.

The first temptation to to see an error 500 if it is the case, is to contact your server, but not always the fault is from your hosting provider – I said not always, eh!

 screen-white-wordpress "width =" 838 "height =" 513 "srcset =" https://ayudawp.com/wp-content /uploads/2016/11/pantalla-blanca-wordpress-840x514.jpg 840w, https://ayudawp.com/wp-content/uploads/2016/11/pantalla-blanca-wordpress-550x337.jpg 550w, https: / /ayudawp.com/wp-content/uploads/2016/11/pantalla-blanca-wordpress-768x470.jpg 768w, https://ayudawp.com/wp-content/uploads/2016/11/pantalla-blanca-wordpress. jpg 980w "sizes =" (max-width: 838px) 100v w, 838px "/> </p>
<p> The reasons can be several, but almost always are usually caused after some update of plugins, themes or even WordPress, or any change in the configuration of a plugin or theme, apart from that you are a big hand, which is also possible. </p>
<p> There are several things we can check and try to fix, and I advise you to follow this anti-disaster list if you find a blank screen when accessing the administration of your WordPress. [19659007] First of all: Activate debugging </span></h2>
<p> Before I start to touch anything, I recommend that you activate the debug mode (<em> debug </em>) of WordPress, this way you will stop seeing the blank screen and, instead , the errors that are really causing the problem will be shown. </p>
<p> To do so, open the file <code> wp-config.php </code> of your WordPress installation and add the following lines: </p>
<div id=

define ( 'WP_DEBUG' true ) ; [19659003] define ( 'WP_DEBUG_LOG' true ) ;

It is possible that the first line already exists, if so simply change it from false to true.

The first line is the one that activates the error display, and the second one creates a debug file in /wp-content/debug.log in the that all debugging errors will appear.

Check the plugins

The first thing is to check the most common suspects: the plugins . To check if someone has been the culprit access by FTP or cPanel to your server and change the name to the folder of the plugins .

It will be in / wp-content / plugins / ] so give it another name, for example / wp-content / plugins-malos / to say the least.

If you can access it simply rename the plugins folder to its original name and return to activate them, one by one, testing if you can then access, to detect which is causing the error.

Check the topics

To check if it is a matter of the issues the procedure is similar, but first you must make sure that you have installed at least one of the default WordPress themes, the Twentyloquesea that you play this year.

Why do I tell you this? Well, because we are going to deactivate the active theme and do not want your website to go blank without displaying any content?

WordPress, if it does not detect any active theme, it automatically activates the last default theme that you have installed, so that if gives Google to go through your website while doing experiments or fixes, even if it looks ugly, unless it shows your content instead of … nothing.

Well, once you download a subject Twentyalgo and upload it via FTP or cPanel to the folder / wp-content / themes / in this same folder, rename the folder of your active theme to whatever, for example:

From ] / wp-content / themes / Nombredemitema / to / wp-content / themes / Nombredemitema-malo /

When renaming the folder, WordPress deactivates the active theme , looks to see if there is any Twentyalgo installed and activates it.

Next delete the folder of your theme, previous backup, and try to access to your WordPress.

If it was a problem of the subject you should be able to enter the administration. Then upload a clean and updated version, before trying again to activate it again.

Check the .htaccess file

Another of the most common reasons is that your file .htaccess be corrupt have something that does not suit you, so to speak. They can be joined lines that should not be, spaces or intros out of site, too many things, so we'll go to the fast, not to review line by line.

Access by FTP or cPanel to the installation directory of your WordPress and make a copy of the .htaccess file. Then delete it or change the name whichever you prefer, so that it is not active.

Your website should work equally, but it will fail to click on any internal link, this is normal. Just try to access the WordPress administration – if it already works – and in Settings -> Permanent links save changes without modifying any settings.

With this action WordPress creates a new file .htaccess clean, only with the rules of permanent links of WordPress, and all the links on your website will work, as well as the administration, if you have succeeded.

Increase the memory limit of PHP

] We have already seen this before, but here we can also use it, and that is that, due to the PHP memory limit of your server, your website may show an error 500 .

The way easier to check if this is the problem is to open the file wp-config.php of your installation and add the following line:

Save the changes and try to enter. If you do not get it try to raise the limit to 128M or even 256M. But do not think that this is valid forever, realize that it is a temporary patch and you should review your hosting plan, or even change the provider.

Check the WordPress installation files

It may also be that, due to a failed installation, some WordPress files are corrupted or incomplete so download the latest version from WordPress.org and, via FTP or cPanel, upload the folders wp-admin and wp-includes and replaces the existing ones with the new ones.

Check the file and / or folder permissions

Another possible reason may be due to the files and / or folders of your installation ] do not have the correct permissions . If so, this can also cause 500 errors and white screens of death in WordPress.

You can solve it in two ways:

  1. Access by FTP or cPanel to your installation and check the permissions of each file and / or folder and check if they have the right ones: 644 for files, 755 for folders . The bad thing about this method is that you have to check the permissions almost one by one.
  2. Change all hit permissions by adding this line to your wp-config.php file .
  3. If you're staying in SiteGround you can access the WordPress Toolkit and, in one click, automatically change all the permissions of your installation to the appropriate ones in the button Fix permissions .

Contact your hosting provider

If none of the above works I'm afraid you have to contact your hosting provider to give you a solution, which sometimes will change of hosting plan.

If it is the case I recommend that you try with SiteGround not only you will not have most of these problems thanks to their systems of account isolation and specialized optimization in WordPress but if you have any problem you solve it immediately … and yes, they have very competitive prices.

Do you know any other way?

If you have discovered some other way to solve the problem of the white screen and / or error 500 in the administration of WordPress we are looking forward to reading it in your comments.


Loading …

That may also help you: