【发布时间】:2014-04-14 22:55:52
【问题描述】:
我只有 first 漂亮的 url 工作。我没有让第二和第三个工作,他们只是显示一个混乱的页面(未加载样式)+它显示错误的页面
这是我的代码:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php?tab=$1 [NC]
RewriteRule ^/ucp(.*)$ index.php?ucp&tab=$1 [NC]
RewriteRule ^/ucp(.*)$ index.php?ucp [NC,L]
.
Possible urls:
http://subdomain.domain.com/path2files/index.php?&tab=str
http://subdomain.domain.com/path2files/index.php?ucp
http://subdomain.domain.com/path2files/index.php?ucp&tab=str
How they should look like:
http://subdomain.domain.com/path2files/str
http://subdomain.domain.com/path2files/ucp
http://subdomain.domain.com/path2files/ucp/str
【问题讨论】:
-
那怎么了?您一直在编辑问题中的内容吗?
-
对不起。我在编辑这个时遇到了一些问题:(我现在已经做了最后的编辑。
标签: .htaccess url mod-rewrite url-rewriting