WordPress redirect all pages to homepage using htaccess

We can redirect all the pages of WordPress website to home page by using the htaccees
Here’s our example: If you want redirect old-website.com/blog/post to new-website.com/ along with all the other posts that use that same URL format.

# BEGIN redirect to homepage
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/$
RewriteCond %{REQUEST_URI} !\.(gif|jpe?g|png|css|js|php)$
RewriteCond %{REQUEST_URI} !^/wp-admin [NC]
RewriteRule .* / [L,R=301]
#END redirect to homepage

php XAMPP Fatal error: Uncaught Error: Call to undefined function mysql_connect()

You probably have a php7 in XAMPP Please use PDO.
mysql_* functions have been removed in PHP 7
You can use

mysqli_connect($mysql_hostname , $mysql_username)

instead of

mysql_connect($mysql_hostname , $mysql_username)

 

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\ .php:13
Stack trace: #0 C:\xampp\htdocs\chat\index.php(2): include() #1 {main} thrown in C:\xampp\htdocs\chat\config.php on line 13

WordPress HTTP ERROR 500 currently unable to handle this request

If you are facing WordPress HTTP ERROR 500 after installing the WordPress theme or plugin this article will help you. Sometimes this issue will occur because of plugins or themes compatibility problem.
You can manage the issue form the hositng control panel cPanel. Login to your cPanel account www.yoursite.com/cpanel enter you username and password of hosting and follow the below instructions.

  1. Using the file manager rename wp-content/plugins to wp-content/plugins-old
  2. If it still does not work, go to wp-content/themes/the theme you are using and add a -old to the theme name.
  3. If it still have the problem change the wp-config.php file as below. Then when you try to login you should get a list of errors.
Check the wp-config.php file and Where it says define( 'WP_DEBUG', false );
change that to define( 'WP_DEBUG', true );.

Check the error showing path like below and remove the file or plugin it will fix the problem.

WordPress HTTP ERROR 500
WordPress HTTP ERROR 500

If you still have the problem let us know