1. 论坛系统升级为Xenforo,欢迎大家测试!
    排除公告

[求助]我在apache里绑定米后,为什么.htaccess就不能用了

本帖由 Aptx48692005-11-16 发布。版面名称:主机讨论

  1. Aptx4869

    Aptx4869 New Member

    注册:
    2005-11-07
    帖子:
    9
    赞:
    0
    我在apache里绑定米后,为什么.htaccess就不能用了.?
    这个是vBulletin论坛的伪html的插件,原来没有绑定域名的时候还可以使用的.
    但是在加上

    偶论坛的地址是:http://testbbs.ctrl.org.cn/newvbb , 麻烦各位看看~.小弟在这里先谢过啦~~呵呵.

    <VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot d:/web-server/bbs/newvbb
    ServerName testbbs.ctrl.org.cn
    ErrorLog logs/dummy-host.example.com-error_log
    CustomLog logs/dummy-host.example.com-access_log common
    </VirtualHost>

    就不能使用了,请问这是怎么回事啊?

    自定义加的东西有..

    <VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot d:/web-server/bbs/newvbb
    ServerName testbbs.ctrl.org.cn
    ErrorLog logs/dummy-host.example.com-error_log
    CustomLog logs/dummy-host.example.com-access_log common
    </VirtualHost>

    # 支持PHP
    ScriptAlias /php/ "E:/php/"
    AddType application/x-httpd-php .php
    Action application/x-httpd-php "/php/php.exe"

    # 绑定php4apache2.dll模块
    # For PHP 4 do something like this:
    LoadModule php4_module "E:/php/php4apache2.dll"
    # Don't forget to copy the php4apache2.dll file from the sapi directory!
    AddType application/x-httpd-php .php

    # 伪静态
    RewriteEngine on
    RewriteRule ^(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*).cgi(.*)$ $1.php?#$2=$3&$4=$5&$6=$7&$8=$9&$10=$11&$12=$13$14
    RewriteRule ^(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*).cgi(.*)$ $1.php?$2=$3&$4=$5&$6=$7&$8=$9&$10=$11$12
    RewriteRule ^(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*).cgi(.*)$ $1.php?$2=$3&$4=$5&$6=$7&$8=$9$10
    RewriteRule ^(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*).cgi(.*)$ $1.php?$2=$3&$4=$5&$6=$7$8
    RewriteRule ^(.*)-(.*)_(.*)-(.*)_(.*).cgi(.*)$ $1.php?$2=$3&$4=$5$6
    RewriteRule ^(.*)-(.*)_(.*).cgi(.*)$ $1.php?$2=$3$4
    RewriteRule ^(.*).cgi$ $1.php
     
  2. 一路走

    一路走 New Member

    注册:
    2005-11-05
    帖子:
    2,933
    赞:
    18
    我有一 看到这些头就晕
     
  3. 宇杰

    宇杰 New Member

    注册:
    2005-08-31
    帖子:
    678
    赞:
    5
    鬼哥,快来帮他解决,我不懂
     
  4. langyufeng

    langyufeng New Member

    注册:
    2005-09-27
    帖子:
    33
    赞:
    0
    <Directory "d:/web-server/bbs/newvbb/">
    AllowOverride AuthConfig
    Options None
    Order allow,deny
    Allow from all
    </Directory>

    加上试下

    AllowOverride AuthConfig 表示进行身份验证 这是关键的设置