3e web hosting
Please Login or Register

Knowledgebase

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.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
PhpMyChat (Views: 272)
htaccess long lines (Views: 288)
Image Manager (Views: 284)
How to log into cPanel (Views: 290)

Powered by WHMCompleteSolution

Language:

Quick Navigation

Client Login

Email

Password

Remember Me

Search