【发布时间】:2017-08-30 16:27:55
【问题描述】:
大家好,我试图重定向到管理文件夹下的仪表板控制器 addLocation 功能,我在其下方给出了显示 404 页面未找到的链接,
http://localhost/kooly/admin/dashboard/addLocation
这是我的 htaccess 文件帮助我解决这个重定向问题
.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /kooly/
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin
ErrorDocument 404 /index.php
</IfModule>
【问题讨论】:
标签: php .htaccess codeigniter redirect