• [ Moderator note: moved to Fixing WordPress. ]

    Hello,
    I have a question about my htaccess file configuration.
    My site is not installed on the root of the server but in a directory.
    For the moment i have this

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

    but i am not sure with this line:
    RewriteRule ^index\.php$ - [L]
    Do i have to change it with this one ?
    RewriteRule ^(/)?$ myfolder/index.php [L]
    Thank you very much for your help,
    Regards

Viewing 1 replies (of 1 total)
  • This is mine from a WP website in a subdirectory (not in public_html root) and in a subdomain.

    # 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
Viewing 1 replies (of 1 total)

The topic ‘htaccess file in subdirectory’ is closed to new replies.