• Resolved John

    (@dsl225)


    Hello,

    I have a site installed on a subdirectory that way:
    mydomain.com/mysite/
    that works fine but, in some cases, when I type manually this address as above in the browser it gets redirected to the root domain mydomain.com.

    In .htaccess, the WP snippet looks correct like that:

    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase /mysite/
    RewriteRule ^index.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /mysite/index.php [L]

    but I see this rewrite rule above, from WPFC and I wonder if it is correct:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTPS} =on
    RewriteCond %{HTTP_HOST} ^mydomain.com

    I’m checking this because I have no other active redirection at server level.

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Subdirectory installation gets redirected’ is closed to new replies.