I've tried "everything" before making this post so hopefully I either missed something easy and i'm going to feel dumb, or something is screwed up.
I'm working with Drupal 6, php 5.3.1, and mysql 5.1.41
To start i have a live site and a dev site. The live site was being updated without changes being made to the dev site and the goal was to get the dev site up to date with the live site and start using it as intended.
I first backed up of the files and data for both sites, i then wiped out the dev site, installed the lampp for linux version that's currently installed on the live server and copied all of the relevant files into the base directory.
I then created a new empty database and ran install.php, when it completed i can view the drupal site as normal and access the admin pages etc. I then put the site in maintinance mode and imported the live database. After the databse is imported every page i try to view redirects me to the live site.
I've tried changing the htacess file, manually emptying the database cache files, checked the settings file for a base url, and checked the modules for secure pages (it's not installed).
I've tried running update.php after the database is installed, i've also tried using the non-cleaned links http://www.dev.com/?q=user to get to the admin page, but every page i go to redirects to the live site.