Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/264.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/opencv/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php wamp本地主机.htaccess导致禁止的错误?_Php_Wampserver - Fatal编程技术网

Php wamp本地主机.htaccess导致禁止的错误?

Php wamp本地主机.htaccess导致禁止的错误?,php,wampserver,Php,Wampserver,我一直在试图重写url。 以下是我的httpd.conf中的内容 <Directory "C:\wamp\www\base"> Options None AllowOverride all Order deny,allow Allow from all Satisfy all </Directory> # # Note that from this point forward you must specifically allow

我一直在试图重写url。 以下是我的httpd.conf中的内容

<Directory "C:\wamp\www\base">
    Options None
    AllowOverride all
    Order deny,allow
    Allow from all
    Satisfy all
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory C:\wamp\www\base>
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride all

    #
    # Controls who can get stuff from this server.
    #

#   onlineoffline tag - don't remove
    Options None
    AllowOverride all
    Order Deny,Allow
    Allow from all
    Allow from 127.0.0.1

</Directory>
基本目录下的.htaccess文件

Options +Indexes
Options +FollowSymLinks 
RewriteEngine On
RewriteBase /base/
RewriteRule ^category /category.php 
之前我没有做url重写。如果我从基本目录中删除.htaccess,那么它可以正常工作。
有人能帮我启用url重写吗?

你在路径中尝试过/而不是\了吗?@AndreasLinden:in.htaccess?还是到处都是?任何帮助都会很感激。。。
Options +Indexes
Options +FollowSymLinks 
RewriteEngine On
RewriteBase /base/
RewriteRule ^category /category.php