I have my Wordpress site installed on a root folder. Then I have a test subdirectory where I want to have a copy of my website. I did copy and move all of the files from my main website to the test directory. I have created a new database, a new user, imported the database from the main website into the new database and I have changed the wp_confing.php file in the test directory to use that new database. Everything seems to be ok but when I got to: mainwebsite.com/test/wp-admin and I try to log in, it just hangs there, I press on access and I get no error or anything, the password fields just resets but I don't get redirected so I cannot save my permalinks.
I suspect an error in the .htacces file, since its' the same from the main website, but then I deleted it and I still have the same problem.