|
楼主 |
发表于 2012-12-15 11:59:18
|
显示全部楼层
WHMCS的htaccess规则 apache
apache下的规则,请确保放到网站根目录下的htaccess.txt修改为 .htaccess- RewriteEngine On
- # Announcements
- RewriteRule ^announcements/([0-9]+)/[a-z0-9_-]+\.html$ ./announcements.php?id=$1 [L,NC]
- RewriteRule ^announcements$ ./announcements.php [L,NC]
- # Downloads
- RewriteRule ^downloads/([0-9]+)/([^/]*)$ ./downloads.php?action=displaycat&catid=$1 [L,NC]
- RewriteRule ^downloads$ ./downloads.php [L,NC]
- # Knowledgebase
- RewriteRule ^knowledgebase/([0-9]+)/[a-z0-9_-]+\.html$ ./knowledgebase.php?action=displayarticle&id=$1 [L,NC]
- RewriteRule ^knowledgebase/([0-9]+)/([^/]*)$ ./knowledgebase.php?action=displaycat&catid=$1 [L,NC]
- RewriteRule ^knowledgebase$ ./knowledgebase.php [L,NC]
复制代码 |
|