请教这段.htaccess里的伪静态规则代表什么意思

WBOY
Release: 2016-06-13 12:07:59
Original
1131 people have browsed it

请问这段.htaccess里的伪静态规则代表什么意思?

<br /><IfModule mod_rewrite.c><br />RewriteEngine on<br />RewriteCond %{REQUEST_FILENAME} !-d<br />RewriteCond %{REQUEST_FILENAME} !-f<br />RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]<br /></IfModule><br />
Copy after login


/q_login-qq_login.html  这样的网址原来的动态网址应该是什么呢?
奇怪,这段网址没有自动跳转,页面一片空白!请指教!
------解决思路----------------------
如果目录存在q_login-qq_login.html文件就展示此文件

如果不存在 则执行 index.php?/q_login-qq_login.html 
------解决思路----------------------
這個是thinkphp的.htaccess rewrite

RewriteCond %{REQUEST_FILENAME} !-d  不是目錄
RewriteCond %{REQUEST_FILENAME} !-f   也不是文件
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] 重定向到index.php處理

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template