• Hi,

    This is my htaccess file code:-

    # 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

    And this code i have to put in my htaccess file :
    RewriteCond %{HTTP_HOST} ^XXX\.XXX\.XXX\.XXX
    RewriteRule (.*) https://mmm.com/$1 [R=301,L]

    Please expalin me where can i insert this code in my htaccess file

    Thanks

Viewing 1 replies (of 1 total)
  • I’d suggest putting it before the WordPress code. That’s because this looks like you’re trying to do a redirection so you’d want to do that before any of the WordPress rules kick in.

Viewing 1 replies (of 1 total)
  • The topic ‘Ip cancellation code issue’ is closed to new replies.