Support » Plugin: Redirection » 301 redirect instead of 404 on internal pages

  • Resolved blacktroll

    (@blacktroll)


    Hello!

    I have following problem.

    If instead of the correct address of our website http://gkvector.com, for example, http://gkvector.com/3543645 or http://gkvector.com/hgfjhgj that appears page 404 errors, as it should be. Everything’s fine.

    If you go to any internal page of the website, say “Promo” http://gkvector.com/promo/, and dial an incorrect address, such as http://gkvector.com/promo/gfghfhf we are also all well, opens 404 page…

    But when you enter an address with an incorrect address in the form of numbers, not letters, for example: http://gkvector.com/promo/54764578 301 redirects to running partition occur http://gkvector.com/promo/ instead of 404 pages….

    That is, if the wrong address type “hfbdkfb” all is well, and when “67864353” – 404 not called… this problem is only on internal pages, on the main it is not.

    .htaccess code:

    # BEGIN WordPress

    <IfModule mod_rewrite.c>
    Options +FollowSymLinks -Indexes
    RewriteRule ^index\.php$ — [L]
    RewriteRule (.+)/feed /$1 [R=301,L]
    RewriteRule (.+)/attachment /$1 [R=301,L]
    RewriteRule (.+)/comment-page /$1 [R=301,L]
    RewriteRule (.+)/comments /$1 [R=301,L]
    RewriteRule (.+)/trackback /$1 [R=301,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘301 redirect instead of 404 on internal pages’ is closed to new replies.