我的文件結構是類似以下內容:如何configut上笨的public_html htaccess文件
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]
但sti LL如果我的index.php用戶她,我有使用虛擬主機上httpd.conf中
<VirtualHost *:80>
ServerAdmin [email protected]
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>
什麼是提前
不使用的index.php在URL感謝解決方案
不工作,我試了一下 – SAR 2013-05-06 05:50:11