• Resolved MarcoS

    (@marcoastriders)


    hello

    i have many websites that i need to delete the autocomplete of the pages

    here is an example :

    if i write into the browser

    https://fitin4minuten.com/d

    AUTOMATICALLY REDIRECT TO

    https://fitin4minuten.com/danku-partner-fit-in-4-minuten/

    how i can delete this redirections?

    if a person write

    https://fitin4minuten.com/d must appear a 404 error .

    this is my .htaccess

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    thanks so much for the help ??

Viewing 1 replies (of 1 total)
  • @marcoastriders : Go function.php Add this function

    function kill_404_redirect_wpse_92103() {
      if (is_404()) {
       add_action('redirect_canonical','__return_false');
      }
    }
    add_action('template_redirect','kill_404_redirect_wpse_92103',1);

Viewing 1 replies (of 1 total)
  • The topic ‘How To Disable The Autocomplete Page’ is closed to new replies.