[resolved] Moved website to root. Get error 404 when insert images (4 posts)

  1. Meeker
    Posted 3 years ago #

    I just moved my website from example.com/dev to example.com. I can update/create pages ok as long as there are no images in them.

    If I use the Upload/Insert facility to insert images and I click Update, then I get redirected to an error 404 page. I use the File Gallery plugin. Disabling that does not help. Even if I set the image src to an external image on a different website, I still cannot update and get the 404 msg.

    Any ideas please?

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Did you follow the instructions in Moving_WordPress?

  3. Meeker
    Posted 3 years ago #

    Yes I did - carefully as well. I found an error in logs:

    [Wed Oct 17 13:11:30 2012] [error] [client] ModSecurity: Access denied with code 406 (phase 2). Pattern match "(?:\\b(?:on(?:(?:mo(?:use(?:o(?:ver|ut)|down|move|up)|ve)|key(?:press|down|up)|c(?:hange|lick)|s(?:elec|ubmi)t|(?:un)?load|dragdrop|resize|focus|blur)\\b\\W*?=|abort\\b)|(?:l(?:owsrc\\b\\W*?\\b(?:(?:java|vb)script|shell)|ivescript)|(?:href|url)\\b\\W*?\\b(?:(?:j ..." at ARGS:content. [file "/usr/local/apache/conf/modrules2/modsec2.user.conf"] [line "82"] [id "950004"] [msg "Cross-site Scripting (XSS) Attack. Matched signature <src=\\"http:>"] [severity "CRITICAL"] [hostname "www.example.com "] [uri "/wp-admin/post.php"] [unique_id "UA6gctXlfQAWEHn76QYAAu"

    Is this a possible MOD_Sec issue?

  4. Meeker
    Posted 3 years ago #

    I have fixed the issue. I contact the domain hosting company. It was a MOD security problem. In the end, the rules were bypassed which triggered for my domain.

    Thanks for your help.

Topic Closed

This topic has been closed to new replies.

About this Topic