0

我的服务器上有一个 .htacces 应该这样做:

你进入 ziced.com/cl/something 并将其重写为 ziced.com/cl/index.php?var1=something,但是不起作用。

您可以通过输入 ziced.com/cl/faq 与 ziced.com/cl/index.php?var1=faq 来检查是否不起作用

这是.htaccess

AddHandler application/x-httpd-php5 .php

# This is the initialization
# For security reasons, Option followsymlinks cannot be overridden.
#Options +FollowSymLinks
#Options +SymLinksIfOwnerMatch
RewriteEngine On


RewriteBase /

#chilean redirect

# /cl/var1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^cl/([a-zA-Z0-9\.\*\°\~\,\%\"\'\+\(\)\-]+)/?$ /cl/index.php?var1=$1 [L,QSA]

我可能知道问题出在哪里,但我不知道如何解决。具有重写规则的网页 ziced.com 是 metrikstudios.com 的一个插件域

ziced.com 指向metrikstudios.com/ziced/ 所以,也许我应该添加类似:

RewriteRule ^ziced/cl/([a-zA-Z0-9\.\*\°\~\,\%\"\'\+\(\)\-]+)/?$ /cl/index.php?var1=$1 [L,QSA]
4

1 回答 1

1

解决了这个问题。在子目录 ziced (metrikstudios.com/ziced) 中添加了 .htacces。然后它工作完美。

希望它在未来对某人有用

于 2012-08-06T23:03:16.297 回答