301 redirect issue (1 post)

  1. Chuck Reynolds
    Posted 8 years ago #

    I have some 404 links coming up on an old directory and some directories inside that one as well... So I get 404 hits still going to /v1/ and /v1/another-folder/ etc.

    What I wrote below takes care of /v1 but not if there's a trailing slash, and not for anything else beyond /v1/...

    In my .htaccess file I have the following:

    # 301 Permanent Redirects
    Redirect 301 /v1 http://domain.com/
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    How do I fix that? TY!

Topic Closed

This topic has been closed to new replies.

About this Topic