我在根文件夹中有站点www_root/(www.examle.com)
有.htaccess:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ http://www.examle.com/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
我也在subdomain.example.com文件夹中有子域www_root/subdomain。还有.htaccess:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
如果我在浏览器中输入www.example.com/subdomain- wokring 但如果我输入 URL 之类的subdomain.example.com- 不起作用(仅主页)
请帮忙,我做错了什么。
谢谢。