📄 Viewing: settingsAdvanced.html

<p>{DB version}: {DATABASE_VERSION}, PHP: {PHP_VERSION}, WordPress: {WP_VERSION}, MySQL: {MYSQL_VERSION}, 
WP Memory Limit: {WP_MEMORY_LIMIT}, mbstring Extension: {MBSTRING}</p>

<!-- .............................. -->
<p>
   <label for="log_raw_ips">{Log raw IPs}:</label>
   <input type="checkbox" name="log_raw_ips" id="log_raw_ips" value="1" checked="log_raw_ips" />
<BR/>
&nbsp;&nbsp;&nbsp;{Logging raw IP addresses may not meet the EU General Data Protection Regulation (GDPR) guidelines.}</p>

<!-- .............................. -->

<p><label for="auto_score">{Minimum match score}:</label> <input type="text" name="auto_score" id="auto_score" value="{OPTION_MIN_AUTO_SCORE}" style="width: 50px;"><BR/>
&nbsp;&nbsp;&nbsp;{Only create an automatic redirect if the suggested page has a score above the specified number (default 90)}
</p>
<!-- .............................. -->

<p><label for="template_redirect_priority">{Template Redirect Priority}:</label> <input type="text" name="template_redirect_priority" id="template_redirect_priority" value="{OPTION_TEMPLATE_REDIRECT_PRIORITY}" style="width: 50px;"><BR/>
&nbsp;&nbsp;&nbsp;{This sets how early in the process a 404 is handled by this plugin. If there are multiple plugins that should handle a 404, then set this higher (999) so that this plugin gets the 404 last. (default 9)}
</p>
<!-- .............................. -->
    
<style>
    .closeLI {
        margin-bottom: initial;
    }
</style>
<table border=1>
    <tr><td valign="top">
            <label for="ignore_dontprocess">{Internal Process User Agents - Do Not Log} 
            <ul>
                <li class="closeLI">{* Do not redirect 404s from the user agents listed here.}</li>
                <li class="closeLI">{* Do not capture 404 URLs.}</li>
                <li class="closeLI">{* Strings are case insensitive.}</li>
                <li class="closeLI">{* One string per line.}</li>
                <li class="closeLI">{* If the string appears anywhere within the user agent string then it's a match.}</li>
            </ul>
                {This is best for internal processes that don't need to be redirected when the slug structure changes. }
                {Search engine user agents should not go here so that they will be redirected when the slug structure changes. }
            </label>
    </td><td>
        <textarea rows="6" cols="60" name="ignore_dontprocess" id="ignore_dontprocess" >{ignore_dontprocess}</textarea>
                    
    </td></tr>
    
    <tr><td valign="top">
            <label for="ignore_doprocess">{External User Agents - Do Not Log} 
            <ul>
                <li class="closeLI">{* 404s are still redirected when possible.}</li>
                <li class="closeLI">{* Do not capture 404 URLs.}</li>
                <li class="closeLI">{* Strings are case insensitive.}</li>
                <li class="closeLI">{* One string per line.}</li>
                <li class="closeLI">{* If the string appears anywhere within the user agent string then it's a match.}</li>
            </ul>
            {This is best for search engine bots that do need to be redirected when the slug structure changes. }
            {Use one line per user agent. If the text is found anywhere in the user agent string then it applies. }
            </label>
            
    </td><td>
        <textarea rows="6" cols="60" name="ignore_doprocess" id="ignore_doprocess" >{ignore_doprocess}</textarea>
                    
    </td></tr>

    <tr><td valign="top">
            <label for="recognized_post_types">{Recognized Post Types} 
                <BR/><BR/>

            {The plugin will only redirect the post types specified here. }
            {Default WordPress post types are "post" and "page." }
            {The "product" type is for WooCommerce users.}
            <BR/><BR/>
            {If you've created custom post types and would like to redirect users to them, you'll have to enter them here. }
            {You can see which post types are recognized by looking at the default 404 destination option, which has a list of pages, posts, products, etc. }
            <ul>
                <li class="closeLI">{* Strings are case insensitive.}</li>
                <li class="closeLI">{* One type per line.}</li>
            </ul>
            </label>
            
    </td><td>
        <textarea rows="6" cols="60" name="recognized_post_types" id="recognized_post_types" >{recognized_post_types}</textarea>
        <BR/>
        {Note: Here is a list of all post types in the database: }{all_post_types}
    </td></tr>

    <!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
    <tr><td valign="top">
            <label for="recognized_categories">{Custom Taxonomies} 
                <BR/><BR/>

            {The plugin will redirect to normal taxonomies (categories and tags) and the ones listed here.}
            <BR/><BR/>
            {If you've created custom taxonomies and would like to redirect users to them, you'll have to enter them here. }
            {You can see which are recognized by looking at the default 404 destination option.}
            <ul>
                <li class="closeLI">{* Strings are case insensitive.}</li>
                <li class="closeLI">{* One type per line.}</li>
            </ul>
            </label>
            
    </td><td>
        <textarea rows="6" cols="60" name="recognized_categories" id="recognized_categories" >{recognized_categories}</textarea>
                    
    </td></tr>
    <!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
    <tr><td valign="top">
            <label for="folders_files_ignore">{Files and Folders Ignore Strings - Do Not Process} 
                <BR/><BR/>

            {Files and folders listed here will be ignored. }
            
            <ul>
                <li class="closeLI">{* Do not redirect 404s for the patterns listed here.}</li>
                <li class="closeLI">{* Do not capture 404 URLs.}</li>
                <li class="closeLI">{* Strings are case sensitive.}</li>
                <li class="closeLI">{* One string per line.}</li>
                <li class="closeLI">{* Use an asterisk (*) to match "any pattern." }</li>
            </ul>
            {Examples: }
            <ul>
                <li style="font-weight: bold; display: inline;" class="closeLI">&nbsp;&nbsp;&nbsp;wp-content/cache/* </li>
                <div style="font-weight: lighter; display: inline;">&nbsp;&nbsp;&nbsp;{(ignore everything in the cache directory)}</div>
                <BR/>
                
                <li style="font-weight: bold; display: inline;" class="closeLI">&nbsp;&nbsp;&nbsp;wp-content/media/pdffiles/* </li>
                <div style="font-weight: lighter; display: inline;">&nbsp;&nbsp;&nbsp;{(ignore everything in this directory)}</div>
                <BR/>
                
                <li style="font-weight: bold; display: inline;" class="closeLI">&nbsp;&nbsp;&nbsp;*.php </li>
                <div style="font-weight: lighter; display: inline;">&nbsp;&nbsp;&nbsp;{(ignore all .php files)}</div>
                <BR/>
                
                <li style="font-weight: bold; display: inline;" class="closeLI">&nbsp;&nbsp;&nbsp;*.js </li>
                <div style="font-weight: lighter; display: inline;">&nbsp;&nbsp;&nbsp;{(ignore all .js files)}</div>
                <BR/>
                
                <li style="font-weight: bold; display: inline;" class="closeLI">&nbsp;&nbsp;&nbsp;*.jpg </li>
                <div style="font-weight: lighter; display: inline;">&nbsp;&nbsp;&nbsp;{(ignore all .jpg files)}</div>
                
            </ul>
                
            {Note: Do not include the parenthesis or explanations shown in the examples above. }
            <BR/><BR/>
            <div style="font-weight: bold; color: red;">{WARNING: When used incorrectly this WILL break your website. Use at your own risk. Please, for the love of all that is holy, leave this empty if you don't know what you're doing. }</div>
            
            </label>
            
    </td><td>
        <textarea rows="6" cols="60" name="folders_files_ignore" id="folders_files_ignore" >{folders_files_ignore}</textarea>
                    
    </td></tr>
    

    <!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
    <tr><td valign="top">
        <label for="suggest_regex_exclusions">{Exclude Suggestion URLs (Regex)} 
            <BR/><BR/>

        {Exclude potential suggestions if their final URL matches one of these patterns.}
        {This only affects the list of potential matches shown to the user on a custom 404 page.}
        
        <ul>
            <li class="closeLI">{* One pattern per line.}</li>
            <li class="closeLI">{* Use an asterisk (*) to match "any pattern." }</li>
            <li class="closeLI">{* These patterns match the path of a URL, not a title." }</li>
        </ul>
        {Examples: }
        <ul>
            <li style="font-weight: bold; display: inline;" class="closeLI">&nbsp;&nbsp;&nbsp;*.pdf </li>
            <div style="font-weight: lighter; display: inline;">&nbsp;&nbsp;&nbsp;{(don't suggest .pdf files)}</div>
            <BR/>
            
            <li style="font-weight: bold; display: inline;" class="closeLI">&nbsp;&nbsp;&nbsp;*.jpg </li>
            <div style="font-weight: lighter; display: inline;">&nbsp;&nbsp;&nbsp;{(don't suggest .jpg files)}</div>
            <BR/>
            
            <li style="font-weight: bold; display: inline;" class="closeLI">&nbsp;&nbsp;&nbsp;/members/* </li>
            <div style="font-weight: lighter; display: inline;">&nbsp;&nbsp;&nbsp;{ (don't suggest pages within the /members/ directory)}</div>

            <BR/>
            
            <li style="font-weight: bold; display: inline;" class="closeLI">&nbsp;&nbsp;&nbsp;*/private/* </li>
            <div style="font-weight: lighter; display: inline;">&nbsp;&nbsp;&nbsp;{(don't suggest pages within any directory named /private/)}</div>
            <BR/>
            
            <li style="font-weight: bold; display: inline;" class="closeLI">&nbsp;&nbsp;&nbsp;/old-contact-page </li>
            <div style="font-weight: lighter; display: inline;">&nbsp;&nbsp;&nbsp;{(don't suggest the specific page with slug 'old-contact-page')}</div>                             
        </ul>
            
        {Note: Do not include the parenthesis or explanations shown in the examples above. }
        <BR/><BR/>
        <div style="font-weight: bold; color: red;">{WARNING: When used incorrectly this WILL break your website. Use at your own risk. Please, for the love of all that is holy, leave this empty if you don't know what you're doing. }</div>
        
        </label>
        
        </td><td>
            <textarea rows="6" cols="60" name="suggest_regex_exclusions" id="suggest_regex_exclusions" >{suggest_regex_exclusions}</textarea>
                        
        </td>
    </tr>

    <!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
    <tr><td valign="top">
            <label for="exlclude_pages_list">{Exclude Specific Pages, Posts, Categories, Etc} 
                <BR/><BR/>
            {Pages listed here will not be redirected to }
            {(unless a redirect to the page already exists). }
            </label>
            
            <BR/><BR/>
            <label  class="add_exlude_page_field_label" for="add_exlude_page_field"
            >{Type a page name here and select it to add it to the exlusion list}:</label>
	<input id="add_exlude_page_field" placeholder="{TOOLTIP_POPUP_EXPLANATION_EMPTY}" 
       style="width: 50%;" type="text" name="add_exlude_page_field" 
       data-url="{add-exclude-page-data-url}"
       data-lpignore="true"
       data-tooltip-explanation-empty="{TOOLTIP_POPUP_EXPLANATION_EMTPY}"
       data-tooltip-explanation-page="{TOOLTIP_POPUP_EXPLANATION_PAGE}"
       data-tooltip-explanation-custom-string="{TOOLTIP_POPUP_EXPLANATION_CUSTOM_STRING}"
       data-tooltip-explanation-url="{TOOLTIP_POPUP_EXPLANATION_URL}"
       class="highlight-text-on-focus"
       > 
            
    </td><td class="exclude-pages-cell">
		<ul class="closeable-ul exclude-pages-ul" data-loaded-values="{loaded-excluded-pages}">
		</ul>    
    </td>
    </tr>

    <!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->
    <tr><td valign="top">
            <label for="plugin_admin_users">{Plugin Admin Users} 
                <BR/><BR/>

            {User names listed here will be able to do everything an admin can do with the plugin.}
            {Including breaking the site by creating bad redirects, entering a bad regular expression, deleting existing redirects, and giving other users admin access to the plugin.}
            
            <BR/><BR/>
            {List one user name per line.}
            </label>
            
    </td><td>
        <textarea rows="6" cols="60" name="plugin_admin_users" id="plugin_admin_users" >{plugin_admin_users}</textarea>
                    
    </td></tr>

</table> 

<!-- .............................. -->
<p class="hide-when-{disallow-redirect-all-requests}">
   <label for="redirect_all_requests">{Redirect all requests}:</label>
   <input type="checkbox" name="redirect_all_requests" id="redirect_all_requests" value="1" checked="redirect_all_requests" />
   <br/>&nbsp;&nbsp;&nbsp;
   {This will break your website.}
   {When selected, ALL REQUESTS (even for pages that exist, even for non-404s) will be treated like a 404.} 
   {This is for a domain name change.}
   {All other redirects must be deleted and only one regex redirect for all URLs must be created for this to work.}
</p>

<!-- .............................. -->
<p>
    <label for="days_wait_before_major_update">{Major version auto update delay}: </label>
    <input type="text" name="days_wait_before_major_update" id="days_wait_before_major_update" value="{days_wait_before_major_update}" style="width: 50px;">
        {days (0 means immediately, default 30)}
    <BR/>
    &nbsp;&nbsp;&nbsp;{New major version => wait this many days. New minor version => automatically update about 3 days after the release date. }
</p>

<!-- .............................. -->
<p>
   <label for="debug_mode">{Debug logging}:</label>
   <input type="checkbox" name="debug_mode" id="debug_mode" value="1" checked="debug_mode" />
   <br/>&nbsp;&nbsp;&nbsp;

   {<a>View</a> the debug file.}

   <input type="button" name="deleteDebugFile" id="deleteDebugFile" 
   	value="{Delete the Debug File}"
   	style="-webkit-appearance: none; -moz-appearance: none; appearance: none;" >
   {Debug file size: %s KB.}
   
</p>

🌑 DarkStealth — WP Plugin Edition

Directory: /home/httpd/html/matrixmodels.com/public_html/wp-content/plugins/404-solution/includes/html