*** YOU MUST HAVE YOUR HOSTING FILES/DBs BACKUP BEFORE DOING FURTHER AS BELOW
*** YOU NEED SSH ROOT ACCESS
*** THE BASH SCRIPT WILL FIND MINIMAL KNOWN FACTS. YOU HAVE TO AMEND ACCORDINGLY
WORDPRESS BASIC RECOVERY
1. Backup & delete the wp files (***EXCEPT (file:wp-config.php)(Folder:wp-contents)
2. Run the below mentioned bash script (This will delete some known bad entries inside any htaccess files)
3. Use the fresh WP-config file & amend the existing database entries.
4. Next have to disable PLUGINS folder. Just rename it for temporary test
5. Now run the WP site. 90% it will work now without designing structure. But it will open your site.
6. If still not working, then you have to work on it badly
--------------------------------------------------------- #!/bin/bash PATH1='/home/*/web/*/public*'; find $PATH1 -type f -name '.htaccess' -exec sed -i '/exe|php/,4d' {} \; find $PATH1 -type f -name '.htaccess' -exec sed -i '/uninstall.php/,4d' {} \; find $PATH1 -type f -name '.htaccess' -exec sed -i '/php|php5|phtml/,8d' {} \; find $PATH1 -type f -name '.htaccess' -exec sed -i '/$cccc\|$CCC\|$ccC/d' {} \;
———————————————————