• Resolved 012kal

    (@012kal)


    Is the htaccess redirect good?

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.website.com/$1 [R,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    I don’t think so. You should leave the WordPress rewrite rules alone as WordPress set them. On occasion, WordPress may alter these rules and your port 80 rewrite will get corrupted. Feel free to add a separate port 80 rewrite above the WordPress rules. Just don’t mess with the WordPress rules.

    Thread Starter 012kal

    (@012kal)

    Okay, thank you for your help!

    Have a good day

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is the htaccess redirect good?’ is closed to new replies.