我已经在cpanel public_html内部安装了 OCTOBERCMS ,并且还有另一个子目录名为moodle。当我输入www.example.com之类的URL时,它应该打开10月的根目录网页,而当我输入URL www.example.com/moodle时,它应该从moodle子文件夹中打开页面。现在的问题是,当我打开www.example.com时,它会打开octobercms,但是当我打开www.example.com/moodle时,它不会打开MQodle页面,而是以“无法查找”页面。因此,现在我想阻止从穆德尔子文件夹访问octobercms,并在输入www.example.com/moodle URL时打开穆德尔index.php。
答案 0 :(得分:0)
您需要将/moodle
添加到10月的.htaccess
## White listed folders
# OMMITED
RewriteCond %{REQUEST_FILENAME} !/moodle/.*
RewriteRule !^index.php index.php [L,NC]