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. open_basedir restriction in effect error on WordPress page This is the second time I've run into this problem....
  2. Adding a block of HTML to a WordPress post One problem with the WYSIWYG editor in WordPress is that...
  3. Striping IMG tags from the_content in WordPress (and how to fudge page excerpts) Background: For a site I was working on, I was...
  4. Playing with Post Attachments I've been doing a ton of sites recently using WordPress...
  5. SEO Plugins and problems with the titles not rewriting (WordPress) I can't speak for anyone else who has run into...

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


  • Michael: You can use get_header(2) in your case. The filename of your custom header has to be header-2.php. The problem with include(your_file.php) is, all
  • cliff: hi wonder if you can help me, pls i designed www.kouga.mobi using dreamweaver CS3 and now want to make the phonenumbers into links so that if you
  • jerey: how do i rewrite this because it tried RewriteEngine on #Options +FollowSymlinks RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FIL

About


Advertisements