• Hi, my rewrite-rule doesn’t work, no matter what I do. I’ve tried all kinds of things but this is the code that’s currently in my .htaccess file:

    RewriteEngine On
    
    RewriteCond %{HTTP_HOST} ^funnelbud\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.funnelbud\.com$
    RewriteRule ^/?$ "http\:\/\/www\.funnelbud\.com\/sv" [R=301,L]
    RewriteRule ^/testredirect$ https://www.funnelbud.com/sv [R=301,L]

    It is the final row that is not working – so I enter https://www.funnelbud.com/testredirect and it should redirect to /sv but it doesn’t work.

    Any ideas?

    Thanks for your help.

Viewing 1 replies (of 1 total)
  • Thread Starter eizymeizy_0809

    (@eizymeizy_0809)

    Here’s how it looked before I stripped away everything:

    RewriteOptions inherit
    
    # Created by Redirection
    # Sun, 14 Aug 2016 09:20:09 +0000
    # Redirection 2.4.5 - https://urbangiraffe.com/plugins/redirection/
    
    <IfModule mod_rewrite.c>
    RewriteRule ^/sv/systemfunktioner/fa-fler-kunder/fa-fler-besok-och-leads$ https://www.funnelbud.com/sv/systemfunktioner/fa-fler-kunder/fa-fler-leads [R=301,L]
    RewriteRule ^/sv/test160814$ https://www.funnelbud.com/sv [R=301,L]
    </IfModule>
    
    # End of Redirection
    
    # 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
    
    RewriteCond %{HTTP_HOST} ^funnelbud\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.funnelbud\.com$
    RewriteRule ^/?$ "http\:\/\/www\.funnelbud\.com\/sv" [R=301,L]

    It’s row 7-14 in the code above that doesn’t work.

Viewing 1 replies (of 1 total)
  • The topic ‘.htaccess 301-redirect not working’ is closed to new replies.