【发布时间】:2013-05-06 13:37:30
【问题描述】:
我的文件结构如下:
application
public_html
.htaccess
index
application/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有什么解决办法
提前致谢
【问题讨论】:
标签: php codeigniter