Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.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
。如何在将所有子域请求转发到特定index.php时解决localhost中的.htaccess文件错误? 文件夹str:_.htaccess_Xampp_Localhost - Fatal编程技术网

。如何在将所有子域请求转发到特定index.php时解决localhost中的.htaccess文件错误? 文件夹str:

。如何在将所有子域请求转发到特定index.php时解决localhost中的.htaccess文件错误? 文件夹str:,.htaccess,xampp,localhost,.htaccess,Xampp,Localhost,我正在使用xampp htdocs -dashboard --index.php 。访问htdocs中的文件: 仪表板中的.htacess文件 它显示服务器错误 请帮助解决这个问题 我正在尝试创建subdomain.localhost将显示index.php的dashboard以及localhost的index.php的dashboard 重要的 我在htdocs文件夹中还有其他项目 RewriteEngine On RewriteCond %{HTT

我正在使用xampp

htdocs
     -dashboard
              --index.php

。访问
htdocs
中的
文件:
仪表板中的
.htacess
文件 它显示服务器错误

请帮助解决这个问题

我正在尝试创建subdomain.localhost将显示
index.php的
dashboard
以及
localhost的
index.php的
dashboard

重要的 我在
htdocs
文件夹中还有其他项目

RewriteEngine On

RewriteCond %{HTTP_HOST} ^localhost
RewriteRule (.*) http://localhost/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^localhost $
RewriteCond %{REQUEST_URI} !^/dashboard/
RewriteRule (.*) /dashboard/$1

RewriteCond %{HTTP_HOST} ^(^.*)\localhost
RewriteCond %{REQUEST_URI} !^/dashboard/
RewriteRule (.*) /dashboard/$

Options +FollowSymLinks
RewriteEngine On

RewriteBase /

RewriteRule ^([aA-zZ])$ index.php?siteName=$1
RewriteCond %{HTTP_HOST} ^(^.*)\.localhost
RewriteRule (.*) index.php?siteName=%1