WordPress.org

Ready to get started?Download WordPress

Forums

301 redirect (10 posts)

  1. reempie
    Member
    Posted 1 year ago #

    Hello all,

    I'm trying to redirect my non-www (remonhendriksen.nl) to the www (www.remonhendriksen.nl) URL. But it's still not working. Someone who can help me?

    I added the following rules in to my .HTacces file:

    RewriteCond %{HTTP_HOST} ^remonhendriksen\.nl [NC]
    RewriteRule ^(.*)$ http://www.remonhendriksen.nl/$1 [L,R=301]

    The whole section is now:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{HTTP_HOST} ^remonhendriksen\.nl [NC]
    RewriteRule ^(.*)$ http://www.remonhendriksen.nl/$1 [L,R=301]
    </IfModule>
    # END WordPress

    It still not workes, and it drives me crazy!:p

    Someone who can help?

    Thnx, anyway.

  2. prionkor
    Member
    Posted 1 year ago #

    Just login into your wordpress backend and go to Settings -> General and change the home and blog url. You don't have to write .htaccess directly

  3. reempie
    Member
    Posted 1 year ago #

    Hello. Thnx for your anwser. But then, the non-www, doesn't work i guess? I want both URL's work, but both will redirect to the www-version.

  4. prionkor
    Member
    Posted 1 year ago #

    non www url will redirect to www url. Let me know if its working.

  5. reempie
    Member
    Posted 1 year ago #

    What's the difference between:

    "WordPress-adres (URL)"

    And

    "Website adres (URL)"?

  6. prionkor
    Member
    Posted 1 year ago #

    If you installed wordpress root of the domain both will be same.

  7. reempie
    Member
    Posted 1 year ago #

    Ok. In Chrome, it works. But when I enter http://remonhendriksen.nl in Firefox, it will not go the http://www.remonhendriksen.nl

    Wierd!

    Thnx anyway:)

  8. prionkor
    Member
    Posted 1 year ago #

    looks like the option save didn't take effect yet. When it changes the first thing you will see is that will change the permalinks of the menu with www in front.

  9. reempie
    Member
    Posted 1 year ago #

    Well, the permalink is changed, isn't it?

    Here is a printscreen: printscreen

  10. prionkor
    Member
    Posted 1 year ago #

    yes.. looks like it. But i can still access the site with www and also with non www which should be auto redirect.

    Out of ideas at this point. I hope other people could help :)

Topic Closed

This topic has been closed to new replies.

About this Topic