Subdirectory installation gets redirected | WordPress.org

[ad_1]

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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer