11-10-2018, 11:36 AM
Thanks so much for sharing this.
Just to let you know, I do installs in subfolders all the time and those to URLs let me move installs from folder to folder without having to worry about what folder the install is in.
Unfortunately some servers make it relatively complicated to setup subdomains and depending on whether you use an A record or some type of "forwarding" with your domain registrar, it will have a big impact on how cleanly things work.
The "ideal" way to do this is to setup an A Record with your registrar that just says
xxx.yourdomain.com forwards to an ip.
The add the subdomain to your cpanel or whatever your hosting provider uses and tell it that xxx.yourdomain.com goes to /var/www/yoursite/public_html/whateverfolder
But that isn't always possible. Thanks so much for sharing your workaround. I'm sure it will be helpful to others.
Just to let you know, I do installs in subfolders all the time and those to URLs let me move installs from folder to folder without having to worry about what folder the install is in.
Unfortunately some servers make it relatively complicated to setup subdomains and depending on whether you use an A record or some type of "forwarding" with your domain registrar, it will have a big impact on how cleanly things work.
The "ideal" way to do this is to setup an A Record with your registrar that just says
xxx.yourdomain.com forwards to an ip.
The add the subdomain to your cpanel or whatever your hosting provider uses and tell it that xxx.yourdomain.com goes to /var/www/yoursite/public_html/whateverfolder
But that isn't always possible. Thanks so much for sharing your workaround. I'm sure it will be helpful to others.