Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

raffelustig's avatar

Swap folders in server with laravel project?

On a commercial server for test purposes I have one folder named webshooter.se. I have also a subfolder called www.webshooter.se. The webshooter.se I use as test.webshooter.se in sites-available. I experienced some trouble in the folder webshooter.se and used www.webshooter.se subfolder to build up the site from scratch. That's now working fine. Now I want to bring the folder named www.webshooter.se to be the test.webshooter.se again. Is it possible to just swap names between the two? Like webshooter.se <-> www.webshooter.se. Or is it better to change the sites-availabe posts? The server is an Ubuntu 18.04 LTS (Bionic Beaver)

0 likes
2 replies
Snapey's avatar
Snapey
Best Answer
Level 122

you should change it consistently throughout so that you are not scratching your head later

1 like
raffelustig's avatar

@Snapey I changed in sites-available but I think either way works. This is the site: https://test.webshooter.se It's a pistol competition site containing all you need for creating competitions, signup for a competition, handling results and much more.

Please or to participate in this conversation.