• So I recently installed WordPress. After setup I found this code in my .htaccess file:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /myfolder/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /jmyfolder/index.php [L]
    </IfModule>

    What does it do?

    I have my site password protected and with this code I have to login twice (frustrating). If I remove the code nothing changes (that I know) more than that I only have to login once to access my site..

    Do I need that code? If Yes, any fix for the double login?

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • InterServer

    (@interservernet-web-hosting)

    The code contains WordPress default redirect rules. Also WordPress manages permalinks through the .htaccess file. You can refer the following WordPress documentation to get more information about .htaccess.

    https://codex.wordpress.org/htaccess

    If you are trying to protect WordPress dashboard using .htpassword, I recommend you to create new .htaccess file at wp-admin folder and then add your custom code in the newly created file.

    Thread Starter alexgilseg

    (@alexgilseg)

    Thanks for your reply InterServer..

    That’s actually not my intention.. I want my wordpresshomepage password protected so that it only can be accessed by family because we are rather private and don’t want picture of our children on public websites such as instagram and facebook etc.. It’s not a huge deal to sign in twice.. But if anybody know how to avoid this please let me know..

    I’ve googled a lot about it but can’t find any explanation to how that premade code in .htaccess effects the signing in process..

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘what is this code in .htaccess ??’ is closed to new replies.