# BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress
Archivos de Categoría: Wordpress
If you have ssh access enable, and database credentials ( user / password ) You could use the following lines. cd /my/backup/directory mysqldump -u myusername –password=mypassword mydatabasename > database.sql gzip database.sql
Frecuently we need to upgrade or downgrade php version, in most cases it has to be configure throught php.ini file, but it is only accesible via SSH connection or only you are not able to do it. There is a simple way to incorporate this change in server, you could use .httaccess file, use the […]
This code has to be inserted functions.php bottom, in this case if users are not login-in script has to redirect to login page. After login if user has administrator privilegies it redirect to admin control panel if it isn’t and user has suscbriber privilegies it’s redirect to home-page URL. function login_redirect() { // Current Page […]
What is an snippet? Snippet is a fragment of text used frecuently, as a developer experience some fragments of code are used again and again. You must create a snippet implementation as soon is required. First of all, i’m select SublimeText3 (the lates version available). Go to : Tools/Developer/New Snippet At the first time, we […]