关于去除index.php的问题
在根目录下建立文件:.htaccess,内容如下,<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /jimzone/index.php/$1
</IfModule>
可以实现去除index.php的功能,但是这样的话,就不能在视图中引入图片,js文件,css文件
求解决!!!!!!!!!!!!!!!!!!
RewriteCond $1 !^(index\.php|images|robots\.txt)
增加 css js 等目录即可 我传了张截图,应该怎么解决问题啊
RewriteCond $1 !^(index\.php|images|public|robots\.txt)
增加 css js public 等目录即可复制一下大哥的改一下{:soso_e121:} 为什么我的没成功类 对我有帮助
页:
[1]