By a normal redirection from your cPanel, you can redirect a folder to a particular link. But there is not provision to add a redirection for all the files in a folder to a particular link in cPanel. But you can acheive this by following the below steps.

I am hereby explaining the concept with an example.

Redirect http://example.com/test/file1,…file2,…file3 etc.. (All the files in the folder test), to the link http://pickaweb.co.uk.

1. Log in to Cpanel for example.com.
2. Go to file manager.
3. Open the folder ‘test’
4. Create a file with the name .htaccess (The dot is compulsory and the spelling should not be altered. If you have a one, open that).
5. Enter the following lines there.

RewriteEngine On
RewiteRule (.*) http://pickaweb.co.uk [l,nc]

6. Save the file and exit.
7. Check the link http://example.com/test/file1

Leave a Reply

Your email address will not be published. Required fields are marked *