Support » Fixing WordPress » Tried to remove www, now ***.net/blog redirects to ***.net

  • Hello, I installed WordPress at I wanted to remove the www with the .htaccess file, so I changed this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    # END WordPress

    to this:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^$ [NC]
    RewriteRule ^(.*)$$1 [R=301,L]
    RewriteCond %{REQUEST_URI} ^/?.* [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    As per the instructions on the exact same problem here. Now trying to go to (or redirects to (which is a parked site). I changed the htaccess code back to what it was originally, but it is still doing it.

    What should I put in the htaccess file to regain access to /blog (but still keeping the no-www)? Thanks in advance.

  • The topic ‘Tried to remove www, now ***.net/blog redirects to ***.net’ is closed to new replies.