There are quite a few things to check for this, most have been covered, but the really tricky ones you won't find in most places.
- A redirect, such as an apache server hidden
.htaccess or an nginx configuration file location block.
- Second most common is that you've done everything correctly, but not
cleared the cache. You can just delete the entire 'var' folder at the
web root, it will be recreated when you visit the site in your
Notes: Var folder permissions may be 777. Via terminal this is 'chmod -R 777 var' if you are in your web root.
The above instructions are assuming you've already completed the usual actions. Next are those actions, and some oddities.
All stock changes are in the 'core_config_data' table. Under 'path' column check the following and adjust their data in the 'value' column:
Format: protocol://youraddress.whatever/ - with trailing slash
TRICKY: Be sure to pay careful attention to https, vs http. Often you need to change the https to http.
TRICKY: Some Magento installs have multiple stores. Multiple stores will have multiple web secure urls set. Be sure to change them all- this one is easy to miss. Usually I just search the value column for the url, or a piece of it, to find all of them.
TRICKY: This one is often not mentioned as its very uncommon, but check the 'path' column for 'web/cookie/cookie_domain'. If this is set to a url, set it to your new url in the same format.
Example: www.site.com becomes www.site.dev