# 404-solution/trunk/includes/html/settingsAdvancedContent.html

404 Solution, version trunk. 182 lines.

- Page: https://pluginprobe.com/plugins/404-solution/trunk/code/includes/html/settingsAdvancedContent.html
- Raw: https://pluginprobe.com/plugins/404-solution/trunk/raw/includes/html/settingsAdvancedContent.html
- Modified: 2026-06-23T05:55:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/404-solution/trunk/code/includes/html/settingsAdvancedContent.html#L10-L20`.

```html
<style>
    .closeLI {
        margin-bottom: initial;
    }
    .abj404-settings-table {
        border: 1px solid var(--abj404-border);
        border-collapse: collapse;
    }
    .abj404-settings-table td {
        border: 1px solid var(--abj404-border);
        vertical-align: top;
        padding: 12px;
    }
</style>
<table class="abj404-settings-table">
    <tr><td>
            <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>
            <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>
            <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: var(--abj404-danger);">{WARNING: When used incorrectly this WILL break your website. Use at your own risk. Please, for the love of your website, 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>
        <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: var(--abj404-danger);">{WARNING: When used incorrectly this WILL break your website. Use at your own risk. Please, for the love of your website, 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>
            <label for="add_exclude_page_field">{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_exclude_page_field_label" for="add_exclude_page_field"
            >{Type a page name here and select it to add it to the exclusion list}:</label>
	<input id="add_exclude_page_field" placeholder="{TOOLTIP_POPUP_EXPLANATION_EMPTY}"
       style="width: 50%;" type="text" name="add_exclude_page_field"
       data-url="{add-exclude-page-data-url}"
       data-lpignore="true"
       data-tooltip-explanation-empty="{TOOLTIP_POPUP_EXPLANATION_EMPTY}"
       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>

</table>

```
