How do I enable Parent Paths?

If you are receiving an error such as the following:

Active Server Pages error "ASP 0131"

Disallowed Parent Path

/test/someScript.asp, line 5

The Include file "../includes/header.asp" cannot contain ".." to indicate the parent directory.

Your site requires the use of Parent Paths to be enabled. There are two solutions, one is to enable parent paths (see below) or the second to modify your include statements from:

<!-- #include file = "../includes/header.asp" -->

To

<!-- #include virtual = "/includes/header.asp -->

This is generally seen as the better solution, however if you wish to enable parent paths, you can by doing the following:

  • Log into the control panel
  • Click the Domains icon
  • Select the relevant domain
  • Click the Advanced Domain Options icon
  • Click the Parent Paths icon
  • Change the drop down box to Enabled
  • Click the Save icon
    • 1951 Users Found This Useful
    Was this answer helpful?

    Related Articles

    What are the three folders in my root directory?

    Every site created on our system will have three folders automatically created with it.wwwroot -...

    I have only just registered/transferred my domain, how can I test my site?

    If you have only recently registered or transferred your domain name, it can take up to 72 hours...

    Why do I get a 404 error (File not found) when I know the file exists?

    If you have uploaded a scripting file (such as ASP or PHP) but do not have that particular...

    How do I enable Directory Browsing?

    Log into the control panel Click the Domains icon Select the relevant domain Click the Web Site...

    How do I modify my Default Documents?

    Default Documents are the filenames the webserver will look for when your site is browsed without...