index.php
is the default template, the fallback.
If we look here:
http://codex.wordpress.org/Template_Hierarchy
And at the diagram:
We can see here that search.php is the appropriate template.
Have you considered using author.php and the author archives instead of modifying the search template? There are far better ways of implementing what you want, even the searching via author name, rather than acquiring a fix for your fix. Perhaps a new question titled “How to search posts via author name”
Related Posts:
- WordPress /page/2 404 pagination problem – what to do?
- List posts based on first letter of posts
- Non existing blog pages are not redirected to 404
- category/category_name pagination 404 error
- Pagination gives 404 in template
- Pagination (page/2/) displaying 404 on archive pages
- 404 not found error on pagination
- remove_query_arg() on rewrite rule
- Not refreshing content pagination on search result
- Pagination on home page not working
- Search page pagination does not work
- Pagination 404s on custom query
- wordpress custom search page pagination returns 404
- WP Page Navi. 404 error when using posts per page parameter [duplicate]
- Error 404 on pagination on homepage
- Pagination in author, category, archive and tags pages does not work
- Page not found yet the posts are listed?
- Search URL redirect problem
- what code to add to search.php
- remove rel=next on category page (if
- Search, pagination, the last pages leads to 404 page
- get_posts custom paging
- Add pagination to search.php page
- Search pagination link redirecting to a link that doesn’t work with pagination
- Pagination diplays always 2 pages
- Changing post per page causing 404 for pagination. Need a redirect htaccess rule
- Search URL gives 404
- Search engine not working
- Custom pagination generates title 404
- Pagination 404 Not Found child page
- paged query leads to 404? [duplicate]
- Please Help me with Archive 404 Pagination
- Search pagination rewrite to fix 404
- Is it possible to paginate posts correctly that are random ordered?
- How to determine if I’m on the first page of pagination?
- Post_count only shows the number of results per page
- Changing pagination list class
- How to determine if theres a next page
- Paged posts – how to use numbers and next/previous links?
- Why do you need an unlikely integer in paginating?
- How to display pagination links for WP_User_Query?
- How to show a single post on the front page but have normal paging?
- Custom post type pagination 404 fix?
- How to add CSS Class to previous_post_link or get previous/next post link URL
- Display search results within the same page
- Pagination resolving to first page only
- how to get pagination link url?
- add_rewrite_rule – working fine but broken for pagination
- paginate_links() don’t properly work in search.php?
- How to get the number of Pages in a single Post Pagination?
- Aggregate comments, with pagination
- post pagination names, not numbers
- How to fix pagination after rewriting url? ie. www.site.com/players/type/pro/page/3/
- Custom post type archive 404’s with paginate_links
- How do I Paginate Search Results for Custom Post Types?
- Display “Page 3 of 5” for a paginated post
- Pagination throws 404 error on custom taxonomy archive pages
- Implementing a general Table of Content across single paginated post pages
- Paginate links with “ugly” and “pretty” permalinks?
- Pagination of RSS2 feed
- Strange paginate_links behavior. First page link is always whatever page I’m on, all other links are correct
- Custom WP_Comment_Query with pagination and orderby?
- Pagination: How do I always show ‘previous’?
- Next/Previous Links in same category
- How To create ajaxed wp-pagenavi?
- Single Page View for Paginated Posts
- How can I see all of a post’s comments on a single page as a reader, if pagination is enabled?
- Turning Broken URLs Into Search Terms?
- Using paginate_links() to generate “1, 2, 3 … 10, 20, 30, 40… 55” paginations
- Change class=”page-numbers” in pagination
- Check if on last page of paginated post using wp_link_pages
- Pagination shows 404 after a certain number of pages
- Custom Search Page Pagination Not Working
- Varying the number of posts per page from the first one
- Using pagination with get_posts on page type
- Rewriting search and pagination base
- Pagination for sub-pages
- Pagination not working for Custom search form & custom result template
- Modifying WP_LIST_AUTHOR Functions to output all users in a grid (and Paginate)
- How to get post pagination like this
- How to paginate a list of tags
- Pagination Not Displaying on Custom Term Archive
- Pagination broken when merging search results with additional WP_Query
- posts_per_page & pagination conflict
- How to implement pagination eg. newer – 3 – 4 – 5 – 6 – 7 – older
- Pagination throws 404
- How do I sort multiples pages?
- How to pass posts_per_page and paged params query vars to custom taxonomy archive urls?
- 404 on category.php pagination
- Problem: ( kriesi ) pagination doesn’t work in homepage [duplicate]
- Custom loop pagination issue ( pagination not showing up )
- WordPress pagination on custom script
- Combining WordPress pagination functions for archives and search results
- Pagination is not working wp_query custom fields values
- Broken pagination
- Passing custom args in paginate_links
- Limit number of pages in pagination
- wordpress Static Page pagination
- Pagination causes error 404 when used with front-page.php
- Static front page with recent posts pagination