Viewing 3 replies - 1 through 3 (of 3 total)
  • Have you looked at your .htaccess file? (I’ll assume your server is running Apache.) If not, look for the statement that has those two URLs, back up the file, and then delete that statement from the live file.

    Thread Starter devrekli

    (@devrekli)

    my htaccess

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

    I searched for it in the database but I couldn’t find it. I do not understand how it redirect.

    • This reply was modified 4 years, 5 months ago by devrekli.
    Thread Starter devrekli

    (@devrekli)

    update

    I tried this but these did not solve the problem. How can I cancel this redirect? thanks

    remove_action('template_redirect', 'wp_old_slug_redirect');
    remove_filter('template_redirect', 'redirect_canonical');  
    remove_action( 'post_updated',      'wp_check_for_changed_slugs', 12, 3 );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can I remove redirect?’ is closed to new replies.