Folder index in wordpress.htaccess

When I use the following URL “ http://www.tuto3d.netai.net/wordpress/ ” in my navigator, I usually access my wordpress site, but when I use http://www.tuto3d.netai.net / Instead, I get the folder index and the link to the wordpress folder. I want to redirect to my .htaccess http://www.tuto3d.netai.net/ to " http://www.tuto3d.netai.net/wordpress/ "

and this is my my .htaccess

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

Thank you in advance

+6
source share
1 answer

Enter this rule in DOCUMENT_ROOT/.htaccess :

 RewriteEngine On RewriteRule ^$ /wordpress/ [L,R=301] 
+1
source

Source: https://habr.com/ru/post/955339/


All Articles