Category

Wordpress

Category

https://www.youtube.com/watch?v=e3rMDeMLz2M&feature=youtu.be 1. Lost or Forgotten Password This is very common issue in WordPress, even you forget your email id you can change the password, it’s very easy to forget or lose track of your current password. While WordPress website has build-in features to reset your password. Solution: Launch phpMyAdmin, locate your site’s database and open up the wp_users table. In the list of users, locate your username in the user_login column and select Edit next…

Log in your database phpmyadmin and go inside of wp_options table and open table Change option_name 2 column first is siteurl and home once this is open change https to HTTP you can check below video. https://www.youtube.com/watch?v=CSz3UaJcrCo&feature=emb_title

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{HTTP:X-Forwarded-Proto} =http RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] RewriteRule ^wp-admin/includes/ – [F,L] RewriteRule !^wp-includes/ – [S=3] RewriteRule ^wp-includes/[^/]+\.php$ – [F,L] RewriteRule ^wp-includes/js/tinymce/langs/.+\.php – [F,L] RewriteRule ^wp-includes/theme-compat/ – [F,L] RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress Options All -Indexes If you don’t want to change anything on .htaccess you may try this out add_action(‘template_redirect’, ‘redirect_core’, 50); add_action(‘init’, ‘redirect_core’, 50);…

sudo chown -R www-data /var/www/html open your .htaccess folder and put this line inside of .htaccess files Options All -Indexes Your .htaccess file now looks like # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^wp-admin/includes/ – [F,L] RewriteRule !^wp-includes/ – [S=3] RewriteRule ^wp-includes/[^/]+\.php$ – [F,L] RewriteRule ^wp-includes/js/tinymce/langs/.+\.php – [F,L] RewriteRule ^wp-includes/theme-compat/ – [F,L] RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # http to https RewriteCond %{HTTP:X-Forwarded-Proto}…

sudo chown -R www-data /var/www/html chown www-data:www-data -R * find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; Giving the full access to all wp files to www-data user (which is in this case the web server user) can be dangerous. So rather do NOT do this: chown www-data:www-data -R * It can be useful however in the moment when you’re installing or upgrading WordPress and…

I had the same issue with ec2 for php mail. install Sendmail by command: sudo apt-get install sendmail check the service whether it’s started or not by executing following command sudo service sendmail status Note: Output of the above command should be something – ‘Active: active (running)’ start the service if it is not running by the following command sudo service sendmail start After the service is started, send a test mail using the following…

Use this 4 step method to remove the redirect loop and mixed content problems when using ssl in WordPress. 1) Replace ‘http://’ with ‘//’ in database – This create all the relative url’s for images and other assets 2) in wp-config, define generic wp_home and wp_siteurl variables. define(‘WP_HOME’,’//’. $_SERVER[’SERVER_NAME’]); define(‘WP_SITEURL’,’//’. $_SERVER[’SERVER_NAME’]); 3) If you are using a load balancer, use ‘HTTP_X_FORWARDED_PROTO’ server variable to figure out the protocol used. To do this, add this line…