I have a Web Applcation which contains a Publishing Site with Variations feature enabled. The following is an example URL for the site http://test-server.com/en

I have enabled a custom error page for English Site. But I want to enable a new Custom Error page for Arabic site with the following URL http://test-server.com/ar.

So overall there should be two Error pages one for Arabic and one for English. How do I go about it?

1 Answer 1


Here is PowerShell to set your page not found URL:

$spsite = Get-SPSite "Web site URL"
$spsite.filenotfoundurl = "/sites/yoursite/Pages/PageNotFoundError.aspx"

Besides, customizing the 404 Redirection in SharePoint for your reference:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.