开发者

Using two 404 page not found pages for different language versions of a site

开发者 https://www.devze.com 2023-03-26 14:56 出处:网络
Is it possible to use two 404 page not found pages for different language versions of a site? mydomain.cz points to the root of mydomain.com with both using the same 开发者_开发技巧404 error page. Is

Is it possible to use two 404 page not found pages for different language versions of a site?

mydomain.cz points to the root of mydomain.com with both using the same 开发者_开发技巧404 error page. Is it possible, using .htaccess, to direct users encountering an error on the .cz domain to be shown another 404 to the .com users?

At the moment for 404 errors in .htaccess we have:

ErrorDocument 404 /projecterror.php


I'm not sure if this is possible through Apache, but I would recommend directing to a .php page that displays dynamic content based on information parsed from

$_SERVER['SERVER_NAME']

0

精彩评论

暂无评论...
验证码 换一张
取 消