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

    Joined:
    Jul 13, 2009
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    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

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    The primary file to leave in place is:

    .htaccess

    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.
     
Loading...

Share This Page