• Hi all,

    I don’t know if this is normal but when you set up redirects in cPanel it will add them to the .htaccess file to make them work basically. But they add those to the bottom of the .htaccess file.

    Which is somewhat normal but those redirects won’t work. They will only work if we manually edit the .htaccess file and add them above the following section:

    # 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

    Is this how it should work or do we have something wrong within our .htaccess? As we would rather be able to do them via cPanel than manually edit the .htaccess file each time.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have never seen cPanel edit the htaccess file when adding redirects through cPanel. I would suggest adding them yourself. Are you trying to add a 301 redirect? I can provide an example of the correct code for you to add them to the htaccess file yourself.

    neddaw

    (@neddawsbcglobalnet)

    I have the same problem. My blog is in a subdirectory and I just purchased SSL for my website. I used cpanel to set up the https: redirects, but it doesn’t work for the blog. In fact, I can’t get to the blog at all from the site homepage, which is not wordpress. So what do I do? Website is raysofhealinglight.com

    neddaw

    (@neddawsbcglobalnet)

    I also have another website which is completely wordpress, but I haven’t set that up yet for https. Can you please tell me what to do there? Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirects – HTACCESS and cPanel’ is closed to new replies.