我有两个不同的域,它们应该完全指向同一index.php文件: 1)diegodeoxossi.com.br 2)lumelivros.com.br
两者的所有DNS设置都相同。 Apache默认虚拟主机已禁用,并且两个域具有相同的虚拟主机配置,如下所示:
1)diegodeoxossi.com.br
<VirtualHost *:80>
ServerName diegodeoxossi.com.br
ServerAlias *.diegodeoxossi.com.br
DocumentRoot /var/www/html
AllowEncodedSlashes On
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
RewriteEngine on
SSLProxyEngine On
</VirtualHost>
2)lumelivros.com
<VirtualHost *:80>
ServerName lumelivros.com
ServerAlias *.lumelivros.com
DocumentRoot /var/www/html
AllowEncodedSlashes On
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
RewriteEngine on
SSLProxyEngine On
</VirtualHost>
它们都指向同一个根目录,并且都通过.htaccess-这是问题所在:我在.htacces中的最后一行是:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.* site/index.php?APPLR_friendlyURL=1 [L,QSA]
问题是:域#1运作良好;域#2通过此规则,并继续显示apache的默认页面。有没有人知道如何解决它?