.htaccess重定向子域

时间:2017-03-05 18:38:25

标签: php apache dns server

我厌倦了将我的子域重定向到一个托管上的另一个主域。但我有错误看起来像PHP无法正常工作。

有人能帮助我吗?

这是我的.htaccess

RewriteEngine on

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php55” package as the default “PHP” programming language.
<IfModule mime_module>
AddType application/x-httpd-ea-php55 .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
RewriteCond %{HTTP_HOST} ^the\.host\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.the\.host\.com$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteRule ^/?$ "http\:\/\/doc\.newhost\.com\/" [R=301,L]

然后这是我的/ var / log / apache2 / error_log

[Mon Mar 06 05:14:36.758085 2017] [cgi:error] [pid 9610] [client 54.79.10.85:46556] AH01215: 2894083 already exist.: /usr/local/cpanel/cgi-sys/ea-php55
[Mon Mar 06 05:14:36.758097 2017] [cgi:error] [pid 9610] [client 54.79.10.85:46556] AH01215: ID exists..: /usr/local/cpanel/cgi-sys/ea-php55
[Mon Mar 06 05:14:36.758104 2017] [cgi:error] [pid 9610] [client 54.79.10.85:46556] AH01215: 2894083: /usr/local/cpanel/cgi-sys/ea-php55
[Mon Mar 06 05:14:36.758122 2017] [cgi:error] [pid 9610] [client 54.79.10.85:46556] AH01215: LAND in Riverstone 27 Lots R2: /usr/local/cpanel/cgi-sys/ea-php55
[Mon Mar 06 05:14:36.758277 2017] [cgi:error] [pid 9610] [client 54.79.10.85:46556] AH01215: 3138523 already exist.: /usr/local/cpanel/cgi-sys/ea-php55
[Mon Mar 06 05:14:36.758289 2017] [cgi:error] [pid 9610] [client 54.79.10.85:46556] AH01215: ID exists..: /usr/local/cpanel/cgi-sys/ea-php55
[Mon Mar 06 05:14:36.758300 2017] [cgi:error] [pid 9610] [client 54.79.10.85:46556] AH01215: 3138523: /usr/local/cpanel/cgi-sys/ea-php55
[Mon Mar 06 05:14:36.758319 2017] [cgi:error] [pid 9610] [client 54.79.10.85:46556] AH01215: DEVELOPMENT OPPORTUNITY: GOLD COAST: /usr/local/cpanel/cgi-sys/ea-php55
[Mon Mar 06 05:14:36.758458 2017] [cgi:error] [pid 9610] [client 54.79.10.85:46556] AH01215: 3031246 already exist.: /usr/local/cpanel/cgi-sys/ea-php55
[Mon Mar 06 05:14:36.758472 2017] [cgi:error] [pid 9610] [client 54.79.10.85:46556] AH01215: ID exists..: /usr/local/cpanel/cgi-sys/ea-php55
[Mon Mar 06 05:20:03.673775 2017] [cgi:error] [pid 11836] [client 46.101.110.32:44194] AH01215: PHP Warning:  Missing argument 1 for plugin_dir_url(), called in /home/platformsoftware/public_html/wp-content/themes/horseexchange/inc/plugins_modify.php on line 41 and defined in /home/platformsoftware/public_html/wp-includes/plugin.php on line 723: /usr/local/cpanel/cgi-sys/ea-php55

有人能告诉我它是怎么发生的吗?以及如何解决它。仅供参考我已将权限文件更改为777并更改了我服务器上的文件所有权。

谢谢,

0 个答案:

没有答案