Issue WPToolKit - Wordpress Sub Directory Install Issue

first4it

New Pleskian
Server operating system version
AlmaLinux 9.3
Plesk version and microupdate number
18.0.70 Update 2
I have a number of Wordpress sites installed in sub-directories of the root folder.

One example would be /var/www/vhosts/mydomain.com/httpdocs/wordpress-here/wp-admin

WPToolkit is fine attaching or finding and adding sites contained within the root folder and operates fine.

If I attach a sub-directory site with the correct URL https://www.mydomain.com/wordpress-here it adds the site correctly but the preview image displayed is the 404 image installed on the site and clicking on the 'Open Website' button results in arrival on the site at the https://www.mydomain.com/wordpress-here folder which also results in a 404 error. The Site URL (https://www.mydomain.com/wordpress-here and Home (https://www.mydomain.com) options are set correctly as defined in running WordPress from a sub-folder of the main root folder and the site is working normally otherwise.

It just seems that WPToolkit does not handle installations in a sub-folder - does anyone have any ideas please?

Kind Regards,
Alan.
 
WP Toolkit can handle installations in subdirectories, but it is a bad practice, because if an .htaccess file exists in any folder above the Wordpress installation, such as in your case in / instead of /wordpress-here, the directives in that .htaccess file will influence all subdirectories. For example if it contains a URL rewrite, this will also influence the behavior of each subdirectory. Check whether this could be the cases for your installation, as it would explain the symptom you are seeing.
 
Hi Bitpalast, thanks for taking the time to reply.

That's interesting as I read a long article on obfuscating your site by placing it in a sub-directory.

I do indeed have a .htaccess file in the httpdocs folder above the /wordpress-here folder and this has entries added by Wordfence WAF and the standard WordPress URL rewrite code. Is there a solution to get this to work?
 
Back
Top