scriptygoddess

12 Sep, 2009

Search from WordPress Admin (Post Listing) Redirecting to Home Page

Posted by: Jennifer In: WordPress|WordPress: Lessons Learned

This is possibly the most bizarre thing I've ever seen. (This is relevant to version 2.8.4). If you have your WordPress install set up to be http://www.yourdomain.com but your blog install set up to be http://yourdomain.com (note the missing "www") and you try to search for posts from with the WordPress admin, you get redirected to your blog's (front end) homepage. If you change your WordPress install to match your blog install (ie. remove the WWW – then it works fine) Sounds like a bug to me. I'll submit it to the WP team and see what they say – but in the meantime should you be up past 1am trying to figure that little gem out, hopefully I've saved you some trouble and you can get to sleep earlier than I did. LOL!

Related posts:

  1. Anchor Links in WordPress Posts – another shortcode solution I was recently asked by a client how they could...

Related posts brought to you by Yet Another Related Posts Plugin.

2 Responses to "Search from WordPress Admin (Post Listing) Redirecting to Home Page"

1 | ed parton

December 3rd, 2009 at 8:37 pm

Avatar

This may seem silly, but can you explain the difference?

I thought all websites were redirected from one to the other… i.e. if you type http://www.edparton.com/blog it goes straight to the wordpress blog installation, but if you type http://edparton.com/blog it automatically redirects to the www addy.

How would this be different in the "search" and/or setup wp-config.php ??

2 | Jennifer

December 3rd, 2009 at 10:45 pm

Avatar

The problem I was describing is a bug in WordPress. In general settings page – if you have the wordpress url WITH the WWW and blog install WITHOUT the WWW – it apparently breaks something. (It shouldn't, but it does)

If you have this particular setup – and you go to the "edit posts" view – that lists all the posts in your blog, and you try to search for a post from that screen – it doesn't work – and instead redirects you to the HOMEPAGE FRONTEND of your site instead of returning a search resulsts / list of posts.

Basically – this was discovered because I had a client that was complaining that she couldn't search for posts in her blog. She said every time she would try to search for a post – she would just get redirected to the (frontend) home page. After a lot of testing, I finally happened to notice the issue with the general settings.

Comment Form

Featured Sponsors

About


Advertisements