Custom error documents in addon domain .htaccess files not working

Symptom: ErrorDocument directives in .htaccess files under addon domains do not function or generate internal server errors when there are one or more rewrite directives in the .htaccess of the parent domain and no overriding rewrite directives in the addon domain .htaccess.

Cause: The rewrite directive at the top level is attempting to rewrite the requests to the addon domain, as .htaccess files are recursive to subdirectories.

Solution: Place a directive at the top of the .htaccess in the addon domain to disable the rewrite function:

RewriteEngine Off

  • 0 Пользователи нашли это полезным
Помог ли вам данный ответ?

Связанные статьи

PHP script error: FATAL ERROR: register_globals is disabled in php.ini, please enable it!

<b>Symptom: </b>The following error appears on a site running a php-based...

HOW TO: Combat referer spam/block certain referers

Symptom: A client wishes to deny access to their site (or parts of it) when the traffic is...

Expression Engine installation generates "variable references" error

Symptom: Expression Engine installations older than version 1.3.1 generate an "Only variable...

My phpBB forum installation is not accessible

Symptom: Client cannot access phpBB forum installation. Permissions on the forum installation...

Enabling register_globals

Symptom: A client's script requires that register_globals be enabled.Resolution: Globals are not...