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!

Permanent wildcard redirect: Safe to delete old content?

Discussion in 'General Discussion' started by mobcdi, Aug 3, 2012.

  1. mobcdi

    mobcdi Well-Known Member

    Jul 13, 2009
    Likes Received:
    Trophy Points:
    I have an account on 1 host with a permanent wildcard redirect to another host and was wondering if I can delete the content (home folder and db's) from the old account without affecting the redirects to clean things up

    Does the old content need to be available for the redirect to work or does it intercept any request to old site and forward it to new site after modifying the domain without hitting the old content?

    Are there any files in webroot I shouldn't delete to avoid breaking the redirect?
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    The primary file to leave in place is:


    This is the file the redirect rules are added to. You can safely remove the other files, however I suggest backing up the data beforehand just in-case.

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

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