• I’ve been editing my client’s htaccess file for hours trying to figure out why the 301 redirects aren’t working. Any ideas? The WordPress installation is at the root. Custom permalinks are in use. Any ideas?

    ‘RewriteEngine on

    #If the page is NOT secure, and the request URI is supposed to be a secure page, then redirect to a secure page
    RewriteCond %{SERVER_PORT} 80 [OR]
    RewriteCond %{HTTPS} !on
    RewriteRule (.*) https://www.drnewtons.com/$1 [R=permanent,L,NC]
    ErrorDocument 404 /index.php?error=404
    php_value max_input_vars 8000
    php_value memory_limit 512M
    —–
    ## Rewrites 9/11/2013
    Redirect 301 /calmax-kids-p-128.html https://drnewtons.com/shop/calmax-kids/

    # 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

    Banging head on table. What am I doing wrong?

The topic ‘301 Redirects from HTTP to HTTPS not working – htaccess apache’ is closed to new replies.