。如何在将所有子域请求转发到特定index.php时解决localhost中的.htaccess文件错误? 文件夹str:
我正在使用xampp。如何在将所有子域请求转发到特定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
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