我的文件结构如下:
application
public_html
.htaccess
index
应用程序/config/config.php
here i have set blank my base_url and index page
.htaccess
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|(.*)\.swf|forums|images|css|downloads|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php?$1 [L,QSA]
但如果我使用 index.php 她我仍然在httpd.conf上使用虚拟主机
<VirtualHost *:80>
ServerAdmin webmaster@dab
DocumentRoot "c:\wamp\www\dab\public_html"
ServerName dab
ServerAlias www.dab
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-acces.log" common
<directory "c:\wamp\www\dab\public_html">
Options FollowSymlinks
AllowOverride None
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</directory>
</VirtualHost>
在 url 上不使用 index.php 的解决方案是什么
提前致谢