Title: Google search code
Last modified: August 19, 2016

---

# Google search code

 *  Resolved [nepd](https://wordpress.org/support/users/nepd/)
 * (@nepd)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/google-search-code/)
 * I tried to add “Google Custom Search Engine” code to my website (www.nepatriotsdraft.
   com).
 * I chose the iFrame version and created a page called “www.nepatriotsdraft.com/
   search-results” to house the results.
 * I entered the code google gave me, **and now my homepage automatically redirects
   to the search results page. **
 * I tried renaming the page (it is now “www.nepatriotsdraft.com/google-search-results”),
   then deleting the page, then deleting the search engine from google.
 * Nothing has worked.
 * As a stopgap, I used the “redirection plugin” to 301 the search results page 
   to my most current post.
 * Any thoughts?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/google-search-code/#post-1605473)
 * Try a plugin instead:
 * [http://wordpress.org/extend/plugins/search.php?q=Google+Custom+Search](http://wordpress.org/extend/plugins/search.php?q=Google+Custom+Search)
 *  Thread Starter [nepd](https://wordpress.org/support/users/nepd/)
 * (@nepd)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/google-search-code/#post-1605474)
 * Will that get rid of the redirection problems?
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/google-search-code/#post-1605475)
 * Maybe? I’ve never tried one myself, but most of them are designed to be set-it-
   and-forget-it.
 *  Thread Starter [nepd](https://wordpress.org/support/users/nepd/)
 * (@nepd)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/google-search-code/#post-1605502)
 * The problem was the “redirection” plugin. Urban Giraffe has a fix for it.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Google search code’ is closed to new replies.

## Tags

 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [nepd](https://wordpress.org/support/users/nepd/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/google-search-code/#post-1605502)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
