I am setting up a new Plesk account and want to add a custom error document, 404, specifying a URL to a PHP file.
In another account, which uses an earlier version of Plesk (v10, if not mistaken), the following method works, just not in Plesk 11.
- Go to Websites & Domains | Virtual Directories
- [Manage] for domain
- Select 'Error Documents' tab
- Click on All | click on 404
- Select Url as the Type
- Type in '/Index.php' as the Location
- List item
Note, file is in root of the selected domain.
Received error:
Error: Wrong URL format. Please enter an absolute URL within the virtual host (site).
Location is highlighted
In previous versions of Plesk, or at least in the other account, specifying "/Index.php" worked.
If I were using ASP.Net, I could probably modify the web.config
file, however I am using PHP here, not ASP.Net.
Thoughts?