Redirect Not Working in Cpanel & Htaccess
I Have Set up a Redirect in Htaccess Which Supposedly Redirects from Mywebsite. Com to Targetsite. Com. the Htaccess File Looks Like This: # Begin Redirects...
I have set up a redirect in htaccess which supposedly redirects from mywebsite.com to targetsite.com. The htaccess file looks like this:
# BEGIN Redirects
RewriteEngine On
RewriteCond %{HTTP_HOST} ^ [NC]
RewriteRule ^(.*)$ [R=301,NC,L,QSA]
# END redirects
RewriteOptions inherit
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Problem is that this configuration does not work at all! And mywebsite.com still brings me to mywebsite.com
Aside from the htaccess or cpanel level, are there any other underlying issues (DNS, nameserver) that might cause this redirect to fail?