symlink files

A symbolic link (also symlink or soft link) is a special type of code that contains a reference to another file or directory. So, it's like having a copy of the file in more than one folder, when actually you only have one copy of that file on your site.

Put the following code into .htaccess in /home/username/ (NOT in public_html folder).
Also, place the desired file in /home/username/ (NOT in public_html folder).
<IfModule mod_suphp.c>
suPHP_ConfigPath /home/username/
<Files file.name>
order allow,deny
deny from all
</Files>
</IfModule>
Be sure to replace username with your lower-case cPanel username and replace file.name with the file's actual name.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to create/edit/delete a file using the File Manager

There may be times when you wish to create, edit, or delete a file or folder in your account....

How to upload a file using the File Manager

You may want to upload your files directly through cPanel. You can do this through the File...

How to navigate through File Manager

How to navigate through File Manager File Manager is an quick and easy way to navigate through...

How do I create a MySQL database, user, and then delete if needed?

Create: If you are using any type of PHP software or keeping a collection of records which need...

How to park a domain on an addon domain

cPanel has yet to offer this option although it can be done. In order to park a domain on...