AnonSec Team
AnonSec Team
Server IP : 149.13.87.7  /  Your IP : 185.174.145.2
Web Server : nginx
System : Linux h2 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User : root ( 0)
PHP Version : 8.0.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /mnt/platforms/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /mnt/platforms/loop.sh
for DOMAIN in \
stevecolman.com
do
    WP_PATH="/mnt/platforms/workspaces/$DOMAIN"

    echo "----------------------------------------"
    echo "Changing permalink for: $DOMAIN"
    echo "Path: $WP_PATH"

    if [ -f "$WP_PATH/wp-config.php" ]; then
        cd "$WP_PATH" || continue

        wp rewrite structure '/%postname%/' --hard --allow-root
        wp rewrite flush --hard --allow-root

        echo "Done: $DOMAIN"
    else
        echo "Skipped: wp-config.php not found for $DOMAIN"
    fi
done


AnonSec - 2021