I'm trying to symlink my public
folder with a index.php
file in it to the httpdocs
folder where the public folder is also placed.
When I try and Symlink the public folder I get an error alerting me that the public
folder name is already taken. I've also tried Symlinking the index.php
file itself which worked but broke the functionality of the site.
Here is the command I'm using when Symlinking the public
folder.
ln -s /var/www/vhosts/mysite.co.uk/httpdocs/public /var/www/vhosts/mysite.co.uk/httpdocs
Here is the command I used when Symlinking the index.php
file.
ln -s /var/www/vhosts/mysite.co.uk/httpdocs/public/index.php /var/www/vhosts/mysite.co.uk/httpdocs
tldr: I want to use the index.php
in the public folder as the index.php
file when a user visits my site without having to use mysite.co.uk/public/index.php
. The index.php
file has to remain in the public
folder.