Title: Uploads not working when forcing https ( redirect )
Last modified: August 18, 2016

---

# Uploads not working when forcing https ( redirect )

 *  [xinti](https://wordpress.org/support/users/xinti/)
 * (@xinti)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/uploads-not-working-when-forcing-https-redirect/)
 * Hello,
 * When i force the /wp-admin/ to be https with a redirect in apache22 conf the 
   uploads function is not working anymore and some of the functions like deleting
   a page/post from the admin only work when i choose edit from viewing the page/
   post logged in as admin.
 * Is there no https support? It seems to me a bit weird we get forced to use our
   usernames/passwords in an unsafe manner..
 * Tnx in advance!

Viewing 1 replies (of 1 total)

 *  [kap4002](https://wordpress.org/support/users/kap4002/)
 * (@kap4002)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/uploads-not-working-when-forcing-https-redirect/#post-662176)
 * I ran into the same problem and fixed it (somewhat dirty) by editing wp-admin/
   includes/media.php, i changed the line 841 from
 * `$form_action_url = get_option('siteurl') . "/wp-admin/media-upload.php?type=
   $type&tab=type&post_id=$post_id";`
 * to
 * `$form_action_url = "/wp-admin/media-upload.php?type=$type&tab=type&post_id=$
   post_id";`
 * this changes the upload form action-url from an absolute to a relative one, the(
   stupid) absolute url had [http://](https://wordpress.org/support/topic/uploads-not-working-when-forcing-https-redirect/?output_format=md)..(
   without s) hardcoded. this then leads to an uploading error when submitting the
   form, because apache rewrites the request and sends a code 302, which generates
   another request to the correct url (with s) but, strange, without POST data.
 * see my fix as “worksforme”, there might be a better solution. for example to 
   exclude /wp-admin/media-upload.php from being rewritten by apache (but then the
   uploads will not be transmitted securely).
 * edit: this is for wordpress 2.5.1

Viewing 1 replies (of 1 total)

The topic ‘Uploads not working when forcing https ( redirect )’ is closed to new
replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [kap4002](https://wordpress.org/support/users/kap4002/)
 * Last activity: [18 years, 1 month ago](https://wordpress.org/support/topic/uploads-not-working-when-forcing-https-redirect/#post-662176)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
