I had my wordpress files in /var/www/site1.com but i move them in /var/www/site2.com and now wordpress can't load. If i open the home page it just show something that look like basic html page with some titles and few links but the links are not working. If i click on the LogIn link it shows:
/wp-login.php was not found on this server.
I guess this is a issue with broken paths but i am not sure how to fix it.
I also cleared the mysql cache with the commands:
FLUSH TABLES; and
RESET QUERY CACHE; but this didn't help.
How to resolve this issue?
EDIT: The problem was in wordpres database. I login in phpmyadmin and in the table
wp_options i changed the path for
home to the new wordpress directory.
But i don't know if this can be done without using phpmyadmin. It will be good if this can be done by modifing some of the wordpress configuration files.