Home Page is redirecting to Another WP Page without my instruction to do so

2 years ago | Anonymous ()

I have recently switched from Blogger to WordPress (FYI) and don't know all the ins and outs of WP.

After installing and activating the Redirect plug-in, I added one redirect from an old archive URL (which contains all the blog posts for one month) in Blogger format to what it's equivalent URL would has become in WordPress. This redirect worked fine.

Then I created a new Page (as opposed to a post), called "giveaways". After Publishing that page, my main home page suddenly redirected to the new Giveaway page. Every time I reentered my main home page, it would just redirect to the Giveaway Page.
In other words, going to: http://www.nannygoatsinpanties.com
would redirect to: http://www.nannygoatsinpanties.com/about/giveaways

I tried deleting the Giveaway page, but the redirect kept redirecting which resulted in a 404 Not Found (since the Giveaway page was now gone). After messing around some more then it got stuck in some redirect loop or something and a different error came up and my website didn't come up at all. (sorry I can't remember what the exact error was, but it indicated that it was timing out because of some redirect loop.

I deactivated the plug-in and everything was fine. I tried deleting the plug-in and re-installing and activating but it still performs the same redirect to the Giveaway Page.

I was hoping there would be some erroneous redirect command somewhere telling the main homepage to redirect to the about page and that I could manually remove it. Is this a bug or incompatability issue between the WP version I'm using and Redirect?

I'm currently using WP version (3.0-RC2-15136). And Redirect Version 2.1.26

Can you help?

Thanks,
Margaret

Read responses...

Responses

  1. Anonymous:

    Posted 2 years ago by

    This just happened to me too - and I've used this redirect tool on about 6 other websites - wonder if it has anything to do with wp 3.0???

  2. Anonymous:

    Posted 2 years ago by

    This is an issue with the update to Redirection setting up automatic redirects....called 'Monitoring'.

    It's nice for a site that has been around for awhile, but in development, it can kill your site and your head.

    In your Dashboard: Go to Tools -> Redirection -> Options. Find 'URL Monitoring' and set 'Post & Page URLS' to 'Don't Monitor'

    Hope this helps.

  3. Anonymous:

    Posted 2 years ago by

    I'm having the same problem :( Just thrashed it today when I added a new page of content

  4. Anonymous:

    Posted 2 years ago by

    I tried the above instructions and it's not working. I'm hoping something else works because for now I have to deactivate it.

  5. Anonymous:

    Posted 2 years ago by

    hmm.. weird.. I was having this issue; so I disabled the plugin. After debugging a bit; I notice a record in the redirection_items table with the 'url' field set to '/' and the 'action_data' field set to the my new post's url.. This was causing the redirection to my new post when I was entering the front page [/].

    Then I read Brad's sugestion, reactivated the plugin setting URL Monitoring to Don't Monitor; deleted the bad record directly on the database (otherwise you will always get the redirect), and now it works! Even if put the URL Monitoring to what it was before..

    Perhaps after activating/deactivating the plugin, and playing with the URL Monitoring options; something gets refreshed and the record with the wrong "/" value doesn't get inserted in the database anymore..

    Rob@ me, try deleting the records in the database where the url filed is equal to '/' like this:

    delete from [prefix]_redirection_items where url = '/';

    I hope this helps!

  6. Anonymous:

    Posted 2 years ago by

    Esteban,

    Thank you so much for your suggestion! That worked to fix the redirect problem (that others referenced above) for me.

  7. Anonymous:

    Posted 2 years ago by

    You need to disable 'Monitoring' to ensure this doesnt happen again in the future (as noted above). To remove the redirects that have already been applied, click on the Redirection 'Settings' and go to 'Groups' and see if any of those redirects are the offending redirects. Usually it will be '/' redirecting to '/mynewpage/'. Just delete and no more redirects from your home page.

  8. Anonymous:

    Posted 2 years ago by

    I had this same thing happening to me, I don't know if it's relation to what Brad mentioned but: I fixed this on two sites. If you go, from the Redirections settings menu, click on [Groups] then [Modified posts] you'll probably see a 301 in there for just "/". Remove it. I don't know how or why it got added, but it seemed to be around the time I upgraded to 3.0.

  9. Anonymous:

    Posted 2 years ago by

    I posted this on the Wordpress forums, but for anyone still searching for a solution, here's a fix.

    Disabling Redirection works, but I needed Redirection to be active, so if you're in the same boat, here's what you need to do. Unfortunately you'll need to do some editing of the plugin files, as well as some fiddling in your database:

    1. The redirection problem is occurring because the plugin created a redirect when you first hit save or publish on the post/page. This means there is a row in your database that you need to remove. So either through phpMyAdmin or your favourite SQL client, log into your database and find the wp_redirection_items table (it will be wp_2_redirection_items if you're using the Multi-User option). Under the 'url' column, find the one that just has '/' (or if you're on MU, it will be something like '/blog'). Delete that row.

    2. Try going to your front page. It shouldn't redirect anymore. If it does, then something went wrong in step 1 above.

    3. Assuming it's not redirecting anymore, here's how you prevent this from happening again whenever you write a new post or page. Either through FTP or the back-end plugin editor in WP, go to redirection/models/monitor.php.

    4. Find the following:

    function insert_old_post ()
    	{
    		global $post;
    	?>
    	<input type="hidden" name="redirection_slug" value="<?php the_permalink () ?>"/>
    	<input type="hidden" name="redirection_status" value="<?php echo $post->post_status ?>"/>
    	<?php
    	}
    

    5. Change it to:

    function insert_old_post ()
    	{
    		global $post;
    
    		if ( $post->post_status != 'auto-draft' ) {
    	?>
    	<input type="hidden" name="redirection_slug" value="<?php the_permalink () ?>"/>
    	<input type="hidden" name="redirection_status" value="<?php echo $post->post_status ?>"/>
    	<?php }
    	}
    

    6. Save the file. The plugin is now fixed.

    If you need a hand with any of this, or want me to do it for you, you can get in touch through my site's contact form: http://ericnicolaas.com/contact/

    Cheers,
    Eric

  10. Anonymous:

    Posted 2 years ago by

    @jon - that fixed my prob - thanks

  11. Anonymous:

    Posted 2 years ago by

    Thanks to all posters for figuring this out. I was having the same problem, either since updating to 3.0 or perhaps 3.1.

    Hopefully John will find a fix and release an update.

  12. Anonymous:

    Posted 2 years ago by

    I've been having this problem too. Thanks to everyone for helping sort this out; particularly Eric for the code mod.

    Note that you don't have to hack the database to delete the spurious redirects; just go to Tools -> Redirection -> Group: Modified Posts, and click Go. Then you can select and delete them.

    Cheers,
    Graham
    http://grahamstoney.com/

  13. Anonymous:

    Posted 2 years ago by

    Hey everyone
    Having some issues.
    I want to redirect http://zouchmagazine.com to http://zouchmagazine.com/Maintenance.html
    Set up the redirect as '/' redirects to 'Maintenance.html'
    Nothing happens. I just get into my home page.
    Monitoring is off. Cache is cleared.

    Can you NOT redirect your home page?

    Thanks in advance for your help.

  14. Anonymous:

    Posted 2 years ago by

    "Monitoring" is the best part of this plugin for me. When an editor or author decides to change a Post or Page title, or change a Post date - instead of breaking all links the clueless editor is covered. Turning Monitoring off leaves me with manual redirects which I can do via htaccess faster and without fear of issues "Redirect 301 /page http://www.domain.com/newpage"

    The other solution I've read here is that you must first save any new Post or Page as a draft, then publish. An odd development that started with WP 3.0.

    Does the author or anyone know if there are plans to fix this issue? There's been 1 or 2 releases with nary a mention of it. Loved the plug-in but until it's "fixed" I'm looking for other solutions.

Home | Software | Terms & Conditions | Sitemap | John Godley © 2013