• Resolved daviesda

    (@daviesda)


    Hi folks,

    I look after 5 WP sites all hosted in the same Hostpapa hosting account. One in installed in the root public_html directory and 4 are in sub-directories. Up until recently everything has been fine.

    A few days ago, I can’t pin it down precisely, admins of the sites were reporting problems logging in, as submitting the login form in wp-login.php resulted in an intermittent 404 error. /wp-login.php would load, but when submitted the same page generated a 404. The problem seems to be HTTP POST related. It happened once or twice to me too but not consistently.

    Going through each site, with minimal plugins activated, all settings seem ok, and the sites have previously worked fine for years. I suspected an .htaccess problem so I deleted the existing files and created new ones (correctly reflecting the different RewriteBase for the 4 installations in sub-directories). That didn’t fix it so I next tried saving the permalinks settings as suggested by the Interwebs. That’s when I found out that I can’t save permalinks on any of the 5 sites. Each time /wp-admin/options-permalink.php is submitted I get a 404. I’ve verified that all the other WP settings forms save ok, so it can’t be a blanket block on all HTTP POST requests, and indeed the server logs indicate other forms are submitting ok.

    This has got me really puzzled, and I can only think of an Apache config problem that I can’t access via the Hostpapa control panel. Any ideas, including what I need to ask the tech support folk at Hostpapa? Past experience tells me I’ll just be told I have a config error somewhere.

    Thanks!

    David.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator t-p

    (@t-p)

    Can your host confirm that mod_rewrite is functioning properly for your site?

    Useful codex about permalinks: Using_Permalinks

    Thread Starter daviesda

    (@daviesda)

    Yes Tara, mod_rewrite is working. Permalinks are already set to /%year%/%monthnum%/%day%/%postname%/ and pages display with this URL structure.

    However I can’t change the permalinks to anything else, and re-saving the setting with Date and name option generates the 404.

    @daviesda

    Did you ever figure out a solve for your issue?

    Thread Starter daviesda

    (@daviesda)

    Yes, it was an ISP problem in the end, nothing to do with WordPress.

    Moderator t-p

    (@t-p)

    @daviesda,

    Glad you got it sorted ??

    Hi, I’m having the same problem. I own a webshop and since I updated my WooCommerce yesterday, it gives an error when you want to check out/pay. I posted it on WooCommerce and somebody told me to that the permalink of the checkout page is broken (gives a -1). I want to save the permalinks again but it comes back with a 404 everytime I try.

    What I already tried:

    – deactivating all plugins = no result
    – selecting another theme = no result
    – set the .htaccess up again = no result

    I don’t want to reinstall WordPress again as I know it will work but as soon as I install WooCommerce again, it will result in the same…

    My website is: https://www.leukesieraden.net (it is in Dutch) and maybe you know how I can fix this.

    Thanks!

    Bests,

    Adinda

    Hi, me again.

    I went into the DB by hand and set the permalinks to ‘blank’, which is the default. Now when I save it doesn’t give me a 404 but instead: it doesn’t save at all and gives the same url back over and over again (/options-permalinks.php/options-permalinks.php etc. etc. It is stuck in a loop.

    I downloaded the latest WordPress version and uploaded the options-permalinks.php file but that doesn’t seem to help. I turned off all my plugins but that didn’t do the trick.

    As far as I know for now:

    1) it is NOT the theme
    2) not WooCommerce itself as I reset is back to 3.0 (the version when everything was working fine with will yesterday when I upgraded to 3.0.1 for bug fixes)
    3) the options-permalink.php file is not corrupted as I uploaded it again
    4) no plugins are to blame as I shut them all down

    … Don’t know what to do next ?? Somewhere the ‘redirect’ for saving permalinks is broken but where??

    Moderator t-p

    (@t-p)

    @adinnie,

    If you notice this is a “resolved” thread.

    If the troubleshooting already posted made no difference for you, then, as per the Forum Welcome, please post your own topic.

    I’m closing this thread.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Saving permalinks settings gives 404 error’ is closed to new replies.