Skip to content

Commit

Permalink
feat(fix.sh): Fix htaccess url/path (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
brmb authored Oct 15, 2024
1 parent 13a4fdc commit 7f444f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ function func_malware_fix () {
for i in $(wp theme list --skip-themes --skip-plugins --fields=name | grep -v '^name'); do echo -e "-----\n$i\n-----"; wp theme install --skip-themes --skip-plugins --force "$i" --version="$(wp theme list --skip-themes --skip-plugins --name="$i" --fields=version | grep -v '^version')"; done

echo -e "\n${YELLOW}Replacing current .htaccess with the default WordPress .htaccess..${NC}"
mv .htaccess .htaccess-OLD-DISABLED && wget -c https://brmb.org/wp-fix/wp-config.txt -O .htaccess
mv .htaccess .htaccess-OLD-DISABLED && wget -c https://brmb.org/wp-fix/htaccess.txt -O .htaccess
echo -e "\n${YELLOW}Disabling .htaccess files in main folders..${NC}"
mv /wp-admin/.htaccess /wp-admin/.htaccess-OLD-DISABLED && mv /wp-content/.htaccess /wp-content/.htaccess-OLD-DISABLED && mv /wp-includes/.htaccess /wp-includes/.htaccess-OLD-DISABLED
echo -e "\n${YELLOW}Deleting .php files in /uploads/ folder..${NC}"
Expand Down

0 comments on commit 7f444f4

Please sign in to comment.