The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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 Forums Analyst
    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.

Share This Page