• hey guys,

    I have deleted 400 spam blogs. Now when someone visits an old blog via Google they are redirected to
    domain.com/wp-signup.php?new=spamblog570
    with “302 Moved Temporarily” redirect status.

    This way Google does not remove Old blog from cache automatically.

    I want to redirect non-existing blogs to homepage of my site
    domain.com
    with “301 Moved Permanently” redirect status.

    Regards,
    Dino

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter dino345

    (@dino345)

    ok, to make it simple – I don’t mind “non-existing blogs” getting redirected to wp-signup.php but I definitely need to change 302 Temp redirect to 301 Permanent redirect.

    I tried changing code in pluggable.php // Line 942 && wp-app.php // Line: 1305.
    I changed 302 to 301 in these files but still no success.

    I will appreciate if someone could help me out with this.

    Open wp-includes/ms-settings.php

    line 92 replace it with:

    $destination = ‘http://’ . $current_site->domain . $current_site->path;

    and before the header() at line 94, add:

    header(‘Status: 301 Moved Permanently’, false, 301);

    Hope it helps.

    Hum i read your version is 3.0.4, i gave you the hack for 3.1
    In 3.0.4 this is a similar code in ms-functions.php.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Wp-Signup Nightmare! Quick hack needed’ is closed to new replies.