Proper Setting for WordPress in sub-dir
-
My site(s) was recently “hacked” by changing the functions.php in the active theme directory. The offending code has been removed, the site(s) have been cleaned and strengthened, and my system scanned.
One baffling annoyance remains – the wordpress files (and my user files it uses) are in the ‘wordpress’ sub-dir. I’m sure that the original configuration for site was:
‘siteurl’,’https://mydomain.com/wordpress’);
‘home’, ‘https://mydomain.com’);But if I try to set to that using the Dashboard/Settings/General or via the theme functions.php, then I can’t login to the dashboard (‘file not found’). If I change the configuration to:
‘siteurl’,’https://mydomain.com’);
‘home’, ‘https://mydomain.com’);I can login, but not using ‘mydomain.com/wordpress’ as was the case before the troubles, but rather with ‘mydomain.com/wp-login.php’
Also as a result of this problem, existing links to the user files (e.g., images) are broken – since they want to link to ‘./wordpress/wp-content/…’, but WP now thinks the files are located at ‘./wp-content/…’
If you wish to see the site in question – it’s https://baystatemarathon.com/
The theme is Atahualpa.I’m sure there’s something trivial wrong, so I apologize for not being able to spot it.
Any help or pointers are appreciated.
- The topic ‘Proper Setting for WordPress in sub-dir’ is closed to new replies.