• Resolved ktolliver

    (@ktolliver)


    I was trying to implement a redirect because my blog used to be on blogger. I want people who click a link to a blogger post to end up on the same post in my wp installation, not just the home page.

    I used the method in the article here, Step 4. https://www.wpbeginner.com/wp-tutorials/how-to-switch-from-blogger-to-wordpress-without-losing-google-rankings/

    I hope someone can help me because my blog is essentially unreachable right now!

    I successfully installed the suggested code in the blogger site. However, when I tried to edit the functions.php file in my theme per the instructions, there is now a redirect error when trying to open my blog at https://www.atravelfortaste.com/wpblog.

    The theme I was using is Virtue. When I backed out of my changes to functions.php, there was still an error. I switched to default themes in turn (Twenty Sixteen, Fifteen, Fourteen), but the error did not resolve itself. I cleared cache and cookies on several browsers on two different devices, but I’m still getting the redirect error.

    Also, the live preview in admin for all themes is a blank, white screen. I’ve removed Virtue and its plugin completely, still no change.

    I’m a total newbie to php and wp.org in general. Obviously, I don’t have a clue what I’m doing. All help is greatly appreciated!

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

    (@ktolliver)

    Ok, I’ve made progress! I deactivated all plugins, then backed up .htaccess file from wpblog directory. Then I deleted .htaccess so it could be recreated. Now homepage shows up with no redirect errors. However, when I click on individual post title links, I get a 404 error.

    Thread Starter ktolliver

    (@ktolliver)

    I tried saving permalinks settings but it breaks the site and I get the redirect error again.

    Thread Starter ktolliver

    (@ktolliver)

    Solution: the problem was an .htaccess file in public_html. I replaced what was there
    (which was
    RewriteOptions inherit
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^atravelfortaste\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.atravelfortaste\.com$
    RewriteRule ^/?$ “http\:\/\/www\.atravelfortaste\.com\/wpblog” [R=301,L]

    with

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Live preview works, changing permalinks works, no redirect errors. I’m back to original functionality! Thanks to https://codex.www.ads-software.com/htaccess

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirect error and blank live preview screen’ is closed to new replies.