Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

If .htaccess deletes -> all Subdomain redirects will be automaticly deleted

Discussion in 'General Discussion' started by musti19, Jul 26, 2013.

  1. musti19

    musti19 Well-Known Member

    Joined:
    Jan 20, 2013
    Messages:
    110
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    If .htaccess deleted -> all Subdomain redirects will be automaticly deleted

    Hello,
    I have found today, that all Subdomain-redirects are only stored in .htaccess file in ftp-folder.
    So if the the .htacess File is deleted by mistake (e.g.: New Installation or updating of wordpress etc.)
    then is all subdomains redirects deleted..

    A "bad" example: You setup a subdomain to external website, where the url is long.
    So a unknown people find a way to manipulate the htacess file and redirects
    to phishing website. You dont attention to the URL and your entered datas
    are stolen!

    I think this a bad idea and second can be a security issue..
     
    #1 musti19, Jul 26, 2013
    Last edited: Jul 26, 2013
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,415
    Likes Received:
    1,956
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    It's by design that the .htaccess file is used for redirects. This file is only accessible by users with access to the directory it's stored in. Feel free to open a feature request if you feel an alternate method for redirects should be used:

    Submit A Feature Request

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice