My main site displays (mypage.com/site), and all of the following pages include / site, and How can I reach (mypage.com) and not display the subdirectory?
I tried to remove / site in the URL of the site address in the Wordpress settings. But he broke my login and disconnected me from logging in.
What should I do to delete the subdirectory / site directory folder on my website?
What should I do in the htaccess file?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /site/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /site/index.php [L]
</IfModule>
source
share