title: Drupal 7: Localhost/user link defaults to website/user
body: <p>I am really new to Drupal and playing around with this existing Drupal site.</p>
  
  <p>I did a FTP transfer of all the files to my local computer directory. I currently got it on a Vagrant box and I can access the site via <code>http://192.168.56.101/html</code>.</p>
  
  <p>I can do <code>http://192.168.56.101/html/anything-but-user</code> and it brings me to the proper area on the site. However I can't do <code>localhost/html/user</code>, because it redirects me to the website URL rather than the local URL.</p>
  
  <p>I tried clearing the cache (with Drush). I scanned all files in the system and changed the web url to the local URL [not sure if I need to do any other command], and I can't seem to find anything in the <code>.htaccess</code> files that would lead me to this.</p>
  
  <p>The <code>href="/user</code> I would greatly appreciate any advice or help in figuring out this solution.</p>
  
  <p>--UPDATED</p>
  
  <p>There was a module called "Secure Pages" that was causing the user and registration links to be locked and static to prevent redirects to phishing sites. I had to disable this module using "drush pm-disable securepages" in the terminal.</p>