Вы уверены?
Это немного запутанно, так как Apache требует завершающий аргумент sh в каталоге для оценки DirectoryIndex
et c. Отключив конечный sla sh, мы должны обработать эту ситуацию вручную с помощью mod_rewrite.
Попробуйте выполнить следующее:
1) Move the /new/.htaccess
файл в root в /.htaccess
. Это убирает .htaccess
из WordPress, поэтому WP больше не может поддерживать этот файл (не обязательно плохо).
2) Измените файл /.htaccess
на следующий:
# Prevent mod_dir from appending the trailing slash to directories (with a 301 redirect)
DirectorySlash Off
RewriteEngine On
RewriteBase /new
# Allow mod_rewrite to match directories that do not have a trailing slash (when DirecrorySlash Off)
RewriteOptions AllowNoSlash
# Rewrite directory without trailing slash directly to the front-controller
RewriteRule ^new$ index.php [L]
# Standard front-controller
RewriteRule ^new/index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^new/. index.php [L]