实际上我需要通过 htaccess 文件在我的应用程序 URL 中添加 index.php 。
我的网址是这样的。
http://localhost:8080/myapp/xyz/abs.html
我需要将其更改为。
http://localhost:8080/myapp/index.php/xyz/abs.html
谁能告诉我需要在 htaccess 文件中写入什么内容。
任何帮助将不胜感激。
Thanks.
有这个规则/myapp/.htaccess
:
RewriteEngine On
RewriteBase /myapp/
# If the request is not for a valid directory
RewriteCond %{REQUEST_FILENAME} !-d
# If the request is not for a valid file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.+) index.php/$1 [L]
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)