Wordpress w/WP also installed in subdirectory - not sure of

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Wordpress w/WP also installed in subdirectory - not sure of

Postby Isador » 08. March 2020 18:32

Have multiple WordPress installs working great on localhost XAMPP install on Win10Pro workstation. Now trying to install WordPress into a subdirectory on one of those existing installs. Not sure what settings to make given it is a new WordPress install in a subdirectory of a localhost Wordpress install on XAMPP; and, not sure of the proper syntax for the any ## entries in the xampp/apache/conf/extra/httpd-vhosts file, and any other files. Also, what would be the proper syntax for the lines: ServerName and ServerAlias in those entries??? I normally name those multiple names as name.dev. Which adds the next question of, should I include the ".dev" part in the aforementioned entries??? Thanks in advance.

ps. This localhost install is on a Win10Pro workstation. It is planned to move it to a Linux based public VPS when vetted. So, any insight about such a move appreciated. We have previously moved such sites successfully; but this site would be the first to have Wordpress installed also in a subdirectory and not sure if that complicates anything.
Thanks Again!
Isador
 
Posts: 22
Joined: 21. November 2017 23:26
XAMPP version: 8.1.2
Operating System: Win 11 Pro - 64bit

Re: Wordpress w/WP also installed in subdirectory - not sure

Postby Isador » 08. March 2020 18:37

Also, using:
Apache/2.4.38 (Win64) OpenSSL/1.1.1a PHP/7.3.2 and 10.1.38-MariaDB
Isador
 
Posts: 22
Joined: 21. November 2017 23:26
XAMPP version: 8.1.2
Operating System: Win 11 Pro - 64bit

Re: Wordpress w/WP also installed in subdirectory - not sure

Postby Nobbie » 08. March 2020 19:38

I dont think you can install a new WordPress installation into a subfolder of an existing WordPress installation. WordPress uses .htaccess file in its installation folder and the .htaccess of the existing WordPress would also be active in the new installation (which also has an .htaccess file, but in the subfolder). Both .htaccess files would be active, i dont think that this a good idea. I dont know, what this means and what would be the result. You should put the new Installation into another folder, not into a subfolder of existing WordPress.

Actually, this is NOT a WordPress forum and we dont support WordPress. You should ask WordPress support if you can build "stacked" WordPress installations. Thats not a Xampp issue but a plain WordPress issue.

ServerName and ServerAlias are used to apply a domain name to the VirtualHost. Proper syntax is only to provide the Domain name, without any http: before or so, do NOT apply an URL. Simply a name like:

ServerName www.example.com
ServerAlias example.com

ServerAlias is optional, you can assign any other Domain Name to the VirtualHost. it is very often used (as in my example) to assign the Domain name without leading www. But you can put there whatever you want.

Some examples for WRONG ServerName:

ServerName http://www.example.com
ServerName www.example.com/myfolder
ServerName http://www.example.com/index.php

Those are all total nonsense. Simply apply a Domain Name, nothing else.
Nobbie
 
Posts: 13214
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 120 guests