• Resolved TommieV

    (@tommiev)


    Hi,

    I’ve just installed wordpress on my secondary domain;
    where my first domain name is:
    tommiev.net
    and the secondary domain is:
    juniorendieleythe.nl which points to tommiev.net\juniorendieleythe
    I’ve installed my wordpress in the dir:
    tommiev.net\juniorendieleythe\wordpress (or juniorendieleythe.nl\wordpress)
    I wanted it to show everywhere that wordpress was installed at juniorendieleythe.nl,
    so in the admin panel I changed the WordPress address (URL) and Blog address (URL) to: https://juniorendieleythe.nl/wordpress
    It’s all up and running and working well, except only one thing..
    Now when in the admin panel when clicking save changes in pages, wordpress redirects me to:
    https://juniorendieleythe.nl/juniorendieleythe/wordpress/wp-admin/…
    Instead of:
    https://juniorendieleythe.nl/wordpress/wp-admin/…
    And I get a 404.
    Everything else seems to be working just fine…

    Thank you for your time! ??

Viewing 1 replies (of 1 total)
  • Thread Starter TommieV

    (@tommiev)

    I think this might be a bug.
    I’ve made a dirty hack that gets around this problem if anyone ever also encounters this problem and it doesn’t get fixed:
    change line 1656 in the file wordpress\wp-includes\functions.php to

    $ref = str_replace( “addondomainwordpressinstallationdirectoryhere/” , “” , attribute_escape( $_SERVER[‘REQUEST_URI’] ));

    and change the text addondomainwordpressinstallationdirectoryhere to the directory name to which you installed wordpress (so for me that was juniorendieleythe since i installed it in tommiev.net/juniorendieleythe)

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress on ‘addonsite’ error: wordpress thinks its installed in the wrong dir’ is closed to new replies.