thinkphp在LAMP环境下用.htaccess文件去掉index.php 如何重定向其他访问路径 30
thinkphp如去掉index.php域名/about/index/jump/8.html如何跳转到域名/about/index/jump.php.htaccess文件...
thinkphp如去掉index.php 域名/about/index/jump/8.html 如何跳转到 域名/about/index/jump.php
.htaccess 文件该如何写,求大牛
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
#RewriteRule ^abc/(.*)$ http://www.baidu.com/$1 [L,R=301]
</IfModule> 展开
.htaccess 文件该如何写,求大牛
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
#RewriteRule ^abc/(.*)$ http://www.baidu.com/$1 [L,R=301]
</IfModule> 展开
1个回答
2014-04-11
展开全部
.htaccess文件代码
<Files ~ "^.(htaccess|htpasswd)$">
deny from all
</Files>
Redirect permanent /index.php /
order deny,allow
或参考ThinkPHP3.0完全开发手册 16.2 隐藏index.php
<Files ~ "^.(htaccess|htpasswd)$">
deny from all
</Files>
Redirect permanent /index.php /
order deny,allow
或参考ThinkPHP3.0完全开发手册 16.2 隐藏index.php
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询