Can anybody help me to redirect my website from www.dipscoochbehar.com to http://dipscoochbehar.com
This is what I wrote in htaccess file:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /agarwalmaheswari/index.php [L]
RewriteRule www.dipscoochbehar.com /var/www/html/demosite/DIPS/index.html [R=301,L]
RewriteRule http://www.dipscoochbehar.com /var/www/html/demosite/DIPS/index.html [R=301,L]
</IfModule>
# END WordPress
And I got the below error: This is the error I got in console when I tried to access the website
<html>
<head>
<title>
500 Internal Server Error
</title>
</head>
<body>
<h1>Internal Server Error</h1>
<p>
The server encountered an internal error or
misconfiguration and was unable to complete
your request.
</p>
<p>
Please contact the server administrator at
webmaster@localhost to inform them of the time this error occurred,
and the actions you performed just before this error.
</p>
<p>
More information about this error may be available
in the server error log.</p>
<hr>
<address>
Apache/2.4.18 (Ubuntu) Server at www.dipscoochbehar.com Port 80
</address>
</body>
</html>
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache/2.4.18 (Ubuntu) Server at www.example.com Port 80 ** – Amit Goel Sep 25 '19 at 07:51