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?

5

Related questions 1 htaccess redirect problem 1 htaccess redirect not working as expected 1 My redirect in .htaccess isn't working Related questions 1 htaccess redirect problem 1 htaccess redirect not working as expected 1 My redirect in .htaccess isn't working 0 htaccess redirect not working as thought 0 Htaccess redirect is not working in my site 1 Redirect not working in apache 0 htaccess not redirecting url 0 .htaccess redirect doesn't work 1 redirect using .htaccess not working 0 Redirect using htaccess not working Load 7 more related questions Show fewer related questions

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.