Home Forums WordPress Plugins Hide My WP After changing wp-includes to custom link errors occur

This topic is: not resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #18155
    FunGuy
    Active
    Post count: 11

    Goal:
    change wp-includes to /include

    After changing I keep getting errors in the console (screen attached).

    No changes in nginx. Only plugin settings.

    This is my current configuration:

    {“li”:”63bb03c3-f068-4a9d-9f83-1d794fa19136″,”import_options”:””,”export_options”:””,”nginx_config”:””,”debug_report”:””,”help”:””,”undo”:””,”custom_404″:”0″,”custom_404_page”:”2″,”trusted_user_roles”:””,”replace_mode”:”quick”,”hide_wp_login”:”on”,”login_query”:”happybits”,”admin_key”:”administrator”,”hide_wp_admin”:”on”,”spy_notifier”:””,”customized_htaccess”:””,”separator”:””,”cdn_path”:””,”email_from_name”:””,”email_from_address”:””,”antispam”:”on”,”full_hide”:”on”,”hide_other_wp_files”:”on”,”disable_directory_listing”:”on”,”disable_canonical_redirect”:””,”hide_admin_bar”:”on”,”avoid_direct_access”:”on”,”direct_access_except”:”index.php, wp-comments-post.php, wp-includes/js/tinymce/wp-tinymce.php, xmlrpc.php, wp-cron.php, wp-admin/upgrade.php”,”exclude_theme_access”:””,”exclude_plugins_access”:””,”new_theme_path”:”/template”,”new_style_name”:”main.css”,”minify_new_style”:””,”new_include_path”:”/includes”,”new_plugin_path”:”/modules”,”rename_plugins”:””,”new_upload_path”:”/files”,”replace_comments_post”:””,”replace_admin_ajax”:”/ajax”,”new_content_path”:”content”,”separator2″:””,”new_login_path”:”/login”,”new_admin_path”:””,”separator3″:””,”api_disable”:”0″,”api_base”:”json”,”api_query”:”rest_route”,”author_enable”:”1″,”author_base”:”/author”,”author_query”:”author”,”author_without_base”:””,”feed_enable”:”1″,”feed_base”:”/feed”,”feed_query”:”feed”,”post_enable”:”1″,”post_base”:”/%year%/%monthnum%/%day%/%postname%/”,”post_query”:”p”,”page_enable”:”1″,”page_base”:”/”,”page_query”:”page_id”,”paginate_enable”:”1″,”paginate_base”:”/page”,”paginate_query”:”paged”,”category_enable”:”1″,”category_base”:””,”category_query”:”cat”,”tag_enable”:”1″,”tag_base”:””,”tag_query”:”tag”,”search_enable”:”1″,”search_base”:”/search”,”search_query”:”s”,”nice_search_redirect”:””,”disable_archive”:””,”disable_other_wp”:””,”remove_html_comments”:”simple”,”replace_javascript_path”:”1″,”remove_feed_meta”:”on”,”remove_other_meta”:”on”,”remove_default_description”:”on”,”remove_ver_scripts”:”on”,”remove_body_class”:””,”remove_menu_class”:””,”clean_post_class”:””,”clean_new_style”:””,”replace_in_ajax”:””,”replace_wpnonce”:””,”internal_css”:””,”internal_js”:””,”enable_ids”:”on”,”ids_level”:”1″,”ids_admin_include”:”on”,”ids_cookie”:”on”,”logger_link”:””,”log_ids_min”:”5″,”block_ids_min”:”30″,”email_ids_min”:”30″,”exception_fields”:”REQUEST.comment[new_line]POST.comment[new_line]REQUEST.permalink_structure[new_line]POST.permalink_structure[new_line]REQUEST.selection[new_line]POST.selection[new_line]REQUEST.content[new_line]POST.content[new_line]REQUEST.__utmz[new_line]COOKIE.__utmz[new_line]REQUEST.s_pers[new_line]COOKIE.s_pers[new_line]REQUEST.user_pass[new_line]POST.user_pass[new_line]REQUEST.pass1[new_line]POST.pass1[new_line]REQUEST.pass2[new_line]POST.pass2[new_line]REQUEST.password[new_line]POST.password[new_line]POST.hide_my_wp.%[new_line]REQUEST.hide_my_wp.%[new_line]POST.%import%[new_line]REQUEST.%import%[new_line]REQUEST.newcontent[new_line]POST.newcontent[new_line]REQUEST.remember_%[new_line]POST.debug_report”,”ids_html_fields”:””,”separator4″:””,”trust_network”:”on”,”help_trust_network”:””,”blocked_ips”:””,”blocked_ip_message”:”You are blocked. Please contact site administrator if you think there is a problem. “,”blocked_countries”:””,”replace1″:””,”auto_config_plugins”:””,”replace2″:””,”db_ver”:”5.5.4″}

    Attachments:
    You must be logged in to view attached files.
    #18164
    Suman M.
    Post count: 12480

    Hi, after you make changes to HMWP settings, you’ll need to overwrite the old set of HMWP rules with new ones in Nginx config file, and then restart Nginx.

    #18168
    FunGuy
    Active
    Post count: 11

    Hi, After updating nginx this looks a lot better, but this line:

    rewrite ^/includes/js/embed\.min\.js /wp-includes/js/wp-embed.min.js?putyo_happybits=administrator last;

    still fails, because there is no file embed.min.js

    So, browser returns 404:

    GET http://everhide.wordpress.dev/wordpress/includes/js/embed.min.js 404 (Not Found) as the file is called wp-embed.min.js

    #18170
    FunGuy
    Active
    Post count: 11

    Has this file to be somehow dynamically created or nginx should understand that this file has to be switched for the file called embed.min.js?

    #18182
    Suman M.
    Post count: 12480

    HMWP replaces “/wp-includes/js/wp-embed.min.js” to “/includes/js/embed.min.js”, and the URL http://everhide.wordpress.dev/wordpress/includes/js/embed.min.js should work fine. Which page is this error occurring? Can we check it?

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.