Support » Localhost Installs » From subfolder to root: No such file or directory

  • Hi!

    I’ve followed the manual w/r to redirecting the url to the subdirectory without moving the wordpress files.

    I now receive the following error:

    Warning: require(C:\domains\graduaterecruiting.nl\wwwroot/wp-blog-header.php): failed to open stream: No such file or directory in C:\domains\graduaterecruiting.nl\wwwroot\index.php on line 17

    Warning: require(C:\domains\graduaterecruiting.nl\wwwroot/wp-blog-header.php): failed to open stream: No such file or directory in C:\domains\graduaterecruiting.nl\wwwroot\index.php on line 17

    Fatal error: require(): Failed opening required ‘C:\domains\graduaterecruiting.nl\wwwroot/wp-blog-header.php’ (include_path=’.’) in C:\domains\graduaterecruiting.nl\wwwroot\index.php on line 17

    So apparently the redirection is wrong – I just cant seem to find whats wrong with it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    I think the “/” is missing after the www and before root.

    eg: C:\domains\graduaterecruiting.nl\wwwroot/wp-blog-header.php

    should be

    C:\domains\graduaterecruiting.nl\www\root/wp-blog-header.php

    Thanks

    On relative urls, that depends your flavour of webserver, even local.

    Basically,

    / is root
    /css/style.css can be called from /test/mytest2.html
    /js/flavour.js can be called IF js script is well written
    so on ..

    As for a windows setup, the declarations in url are the same but you could put direcly APACHE base url to http://localhost or something that fits you, or something for nginx (unless you plan to upload wrong urls in production or host a server on windows iis: gulp :p).

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘From subfolder to root: No such file or directory’ is closed to new replies.