Forums

getting 404 error for options.php (2 posts)

  1. satyendrashrote
    Member
    Posted 1 year ago #

    i am using this url its working fine
    https://domain.com/wordpress/wp-admin/options-general.php
    but on saving this file i am getting

    404 error for options.php a blank page is comming on saving

    is there any fix for it

    1. i have a a web server where the domain name is specified
    2. i have an application server where i am having the code

    i have used mod_rewrite to overwrite the url.

  2. satyendrashrote
    Member
    Posted 1 year ago #

    have worked it out

    have changed wp-admin/options.php

    /**
    * Redirect back to the settings page that was submitted
    */
    $getreferer = wp_get_referer();
    $getreferer = substr($getreferer,10);
    $goback = add_query_arg( 'updated', 'true', esc_url(admin_url($getreferer)) );

    wp_redirect( $goback );

Topic Closed

This topic has been closed to new replies.

About this Topic