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?
5Related 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