我试图设置url localhost:8080/main/testfunction,但它说The requested URL was not found on this server.
localhost:8080正在工作,它重定向到main/index
我的.htaccess是
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /booking/
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
有什么问题吗?
1条答案
按热度按时间bn31dyow1#
通过在Dockerfile中添加此内容修复了此问题