Search code examples
phphtml.htaccessdrupaldrupal-7

Drupal 7: Localhost/user link defaults to website/user


I am really new to Drupal and playing around with this existing Drupal site.

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 http://192.168.56.101/html.

I can do http://192.168.56.101/html/anything-but-user and it brings me to the proper area on the site. However I can't do localhost/html/user, because it redirects me to the website URL rather than the local URL.

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 .htaccess files that would lead me to this.

The href="/user I would greatly appreciate any advice or help in figuring out this solution.

--UPDATED

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.


Solution

  • Some typical items you may want to check: