Title: 404 error publishing post with HTML
Last modified: October 13, 2016

---

# 404 error publishing post with HTML

 *  [pritush](https://wordpress.org/support/users/pri2sh/)
 * (@pri2sh)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/404-error-publishing-post-with-html/)
 * I’m receiving 404 while trying to publish posts with html. Normal post with no
   html hyperlink or basic html gets published but when ever i try to post with 
   basic html like hyperlink or image it gets 404!
 * I tried deactivating all plugins and using default theme but no luck.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/404-error-publishing-post-with-html/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/404-error-publishing-post-with-html/page/2/?output_format=md)

 *  [edenchia](https://wordpress.org/support/users/gogokhim/)
 * (@gogokhim)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/404-error-publishing-post-with-html/#post-8289278)
 * Same here. I tried to add a picture and after updating the page, I get a 404 
   error? There’s no broken links, so what could be the problem?
 *  Thread Starter [pritush](https://wordpress.org/support/users/pri2sh/)
 * (@pri2sh)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/404-error-publishing-post-with-html/#post-8289695)
 * I don’t know, the error is really strange. I found few other facing similar 404
   error.
    I’m pretty sure it is not cause of plugins or theme as i have tried with
   0 plugins and default theme. Memory limit is also enough i.e 384Mb. I’m not sure
   if host/server can be suspected.
 *  [edenchia](https://wordpress.org/support/users/gogokhim/)
 * (@gogokhim)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/404-error-publishing-post-with-html/#post-8289958)
 * Could it be a bug??
 *  [reegad](https://wordpress.org/support/users/reegad/)
 * (@reegad)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/404-error-publishing-post-with-html/#post-8290014)
 * I just have the same issue today :S didnt happen before, have not installed any
   plugins since it last worked.
 *  [reegad](https://wordpress.org/support/users/reegad/)
 * (@reegad)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/404-error-publishing-post-with-html/#post-8290058)
 * Who is your hosting provider?
 *  [reegad](https://wordpress.org/support/users/reegad/)
 * (@reegad)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/404-error-publishing-post-with-html/#post-8290084)
 * Just tried setting permalinks to something other than %postname% and now i’m 
   getting forbidden message.
 *  [reegad](https://wordpress.org/support/users/reegad/)
 * (@reegad)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/404-error-publishing-post-with-html/#post-8290298)
 * Sorry for multiple posts
 * I solved this by contacting my hosting provider, it was a rule that had been 
   triggered in ModSecurity that caused all html to be blocked in new/edited posts.
 * I’m with namecheap and they solved the issue in 2 minutes.
 *  Thread Starter [pritush](https://wordpress.org/support/users/pri2sh/)
 * (@pri2sh)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/404-error-publishing-post-with-html/#post-8290576)
 * I’m too on namecheap!
    I will try contacting them.
 * Have you been using WP Security Plugin ?
    -  This reply was modified 9 years, 7 months ago by [pritush](https://wordpress.org/support/users/pri2sh/).
 *  [reegad](https://wordpress.org/support/users/reegad/)
 * (@reegad)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/404-error-publishing-post-with-html/#post-8290899)
 * No
 * They could not tell me what caused the rule to trigger, but typically it was 
   due to installation of new plugins that caused a false-positive thinking it was
   being attacked while so many files were changed.
 *  [savastgfx](https://wordpress.org/support/users/savastgfx/)
 * (@savastgfx)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/404-error-publishing-post-with-html/#post-8294316)
 * I also need a solution to this problem…
 *  [dalefunkhouser](https://wordpress.org/support/users/dalefunkhouser/)
 * (@dalefunkhouser)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/404-error-publishing-post-with-html/#post-8294743)
 * I am having the same issue. I first noticed it when trying to publish an image,
   but then I saw it’s for any type of code.
 *  [kaaril](https://wordpress.org/support/users/kaaril/)
 * (@kaaril)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/404-error-publishing-post-with-html/#post-9023807)
 * I have this exact problem! I can post a plain text post but as soon as I try 
   to post something with an image, it will direct me to a 404 error(luckily the
   post saves as a draft)
    When I went to my host, HostPapa, they stated that they
   did disable ModSecurity and since that isn’t working they need my wp-admin credentials
   to try and replicate the issue…. this implies they want to post to my blog. This
   is weird right? I have refused to provide my username and password to my blog
   but they have insisted again they need to replicate the issue. Am I right in 
   refusing this? Is it actually that sketchy? This is a brand new blog without 
   any posts or followers so it technically wouldnt matter all the much for them
   to post (i could always change passwords after).. I’m refusing on principle but
   here asking if maybe I am wrong?
 *  [wally2](https://wordpress.org/support/users/wally2/)
 * (@wally2)
 * [9 years ago](https://wordpress.org/support/topic/404-error-publishing-post-with-html/#post-9123097)
 * Kaari, of course give them your details. How else will they fix it?
    Change your
   password in WP admin, give it them and change it back later.
 *  [bodywise](https://wordpress.org/support/users/bodywise/)
 * (@bodywise)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/404-error-publishing-post-with-html/#post-9345213)
 * So many people with the same problem. So few answers. All the answers on line
   do not solve the problem. So this must be a known bug in WP that no one is willing
   to admit.
 * It is maddening. You know the pages are there. They just don’t show up. I have
   tried all sorts of owner and permission settings. The usual htaccess rewrites.
   Nothing works.
 *  [brandiburu](https://wordpress.org/support/users/brandiburu/)
 * (@brandiburu)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/404-error-publishing-post-with-html/#post-9491471)
 * All you need to do is to disable ModSecurity. If you have cPanel you can find
   it there, if not or if it’s not available, speak with your hosting company about
   this.
    Remember: if you have multiple domains, disable ModSecurity only for the
   domain with the issue, don’t disable for all of them since it can be quite useful
   for all of your other projects.
 * Cheers!

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/404-error-publishing-post-with-html/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/404-error-publishing-post-with-html/page/2/?output_format=md)

The topic ‘404 error publishing post with HTML’ is closed to new replies.

## Tags

 * [Missing pages](https://wordpress.org/support/topic-tag/missing-pages/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 16 replies
 * 9 participants
 * Last reply from: [bodywise](https://wordpress.org/support/users/bodywise/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/404-error-publishing-post-with-html/page/2/#post-9491636)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
