WordPress.org

Ready to get started?Download WordPress

Forums

301 redirect issue (1 post)

  1. Chuck Reynolds
    Member
    Posted 6 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]
    </IfModule>

    How do I fix that? TY!

Topic Closed

This topic has been closed to new replies.

About this Topic