0
我們發現很難將my/admin的重定向移除到/index.php/admin,它不允許我們訪問管理面板,在每個以/ admin /被重定向到/index.php/admin/,它顯示No input file specified.
,當我從url中刪除index.php時,它工作正常。。子目錄中的magento的htaccess文件
我的.htaccess文件看起來像這樣
DirectoryIndex /new/magento-k/index.php
RewriteEngine on
RewriteBase /mysubdirectory/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|robots\.txt)
RewriteCond %{REQUEST_URI} !^/admin.*
RewriteCond %{REQUEST_URI} ^/index.php/admin.*$
RewriteRule ^/index.php/admin(.*) /admin$1 [R]
RewriteRule ^(.*)$ index.php?/$1 [L]
RewriteRule ^/index.php/(admin|user)($|/) - [L]
Options -MultiViews