Title: Redirect When Adding Image
Last modified: August 19, 2016

---

# Redirect When Adding Image

 *  [robertcgreen](https://wordpress.org/support/users/robertcgreen/)
 * (@robertcgreen)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/redirect-when-adding-image/)
 * I am running WordPress 2.7.1 on Windows Server 2003 using IIS with PHP 5.2.1.
 * Whenever I am adding/editing a post or page and attempt to add any type of media
   using the insert “media” buttons I am immediately redirected to the homepage 
   of my site.
 * Any thoughts?
 * Thanks.

Viewing 1 replies (of 1 total)

 *  Thread Starter [robertcgreen](https://wordpress.org/support/users/robertcgreen/)
 * (@robertcgreen)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/redirect-when-adding-image/#post-1125669)
 * Alright, so I’ve tracked down exactly where this issue is occurring. It happens
   in thickbox.js line 197. The line reads as follows:
 * jQuery(“#TB_window”).append(“<div id=’TB_title’><div id=’TB_ajaxWindowTitle’>”
   +caption+”</div><div id=’TB_closeAjaxWindow’>[<img src='” + tb_closeImage + “‘ />](https://wordpress.org/support/topic/redirect-when-adding-image/?output_format=md#)
   </div></div><iframe frameborder=’0′ hspace=’0′ src='”+urlNoQuery[0]+”‘ id=’TB_iframeContent’
   name=’TB_iframeContent”+Math.round(Math.random()*1000)+”‘ onload=’tb_showIframe()’
   style=’width:”+(ajaxContentW + 29)+”px;height:”+(ajaxContentH + 17)+”px;’ > </
   iframe>”);
 * Any thoughts?

Viewing 1 replies (of 1 total)

The topic ‘Redirect When Adding Image’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [robertcgreen](https://wordpress.org/support/users/robertcgreen/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/redirect-when-adding-image/#post-1125669)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
