hello
I have created a subdomain in cpanel : subdomain.site.com
and the subdomain is redirecting to subfolder : site.com/subfolder
but I would like to disable the view of the subfolder in url
for instance when the user types : site.com/subfolder
it redirect him back to : subdomain.site.com
I tried to create a redirection from site.com/subfolder to subdomain.site.com in cPanel
but it give me error
is there something I should write in the subfolder .htaccess to make this work?
I have created a subdomain in cpanel : subdomain.site.com
and the subdomain is redirecting to subfolder : site.com/subfolder
but I would like to disable the view of the subfolder in url
for instance when the user types : site.com/subfolder
it redirect him back to : subdomain.site.com
I tried to create a redirection from site.com/subfolder to subdomain.site.com in cPanel
but it give me error
Code:
There was an error adding the redirect.
Redirecting subfolder to http://subdomain.site.com will cause a redirection loop because http://site.com/subfolder, which is located at /home/user/public_html/subfolder, is above http://subdomain.site.com, which is located at /home/user/public_html/subfolder.