Web Host Changed Protected Path

Discussion in 'Setting-up protection' started by chad_rfg, Jun 19, 2009.

  1. chad_rfg

    chad_rfg New Member

    Joined:
    Dec 22, 2008
    Messages:
    1
    When protecting folders, aMember uses the full path to the folder. For example, /home1/myaccount/public-html/mydomain/myprotectedfolder.

    Well my webhost just moved my account from "/home1" to "/home5", which broke all my protected folders. I had to go back, delete and recreate all those protections. (With members yelling at me all along the way.)

    Is the full path required? (Is that a security issue?) Is there some way to prevent this in the future?

    I'm sure others have had this problems as shared hosting providers try to balance their load among servers.

    Thank you for any help!!
    Chad B.
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Most of the time when a host moves a user to a new server they maintain the same directory structure.

    There are most likely two lines in each of your .htaccess files that need to be changed when a path change is made:

    Code:
    AuthUserFile /home/account/public_html/amember/data/.htpasswd
    AuthUserFile /home/account/public_html/amember/data/.htgroup

Share This Page