Every link in my localhost redirects to the live site. The url before clicking reads localhost/blog/year/month/day/post but then redirects to live site homepage. I believe this is a problem revolving around permalinks, apache mod_rewrite but as far as I know I have my .htaccess setup correctly. Any help would be greatly appreciated
Did you do a search and replace on the database to replace all instances of the live site domain name with “localhost” prior to importing the database to the local installation? If yes, try making the local .htaccess file writable to wordpress, and then refresh/update the permalinks and see if that has any effect.
I did in fact search and replace the domain name. If i change the permalink structure to default about half of the links work (mainly posts, but a few pages too) but most links to pages still rewrite to the live site. This is why I believe it’s a mod_rewrite issue
This is just a stab in the dark at this point, but is there any chance that when you copied the live site files, you downloaded an active caching plugin and some cached files from the live site into the local site?