• reempie

    (@reempie)


    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.

Viewing 9 replies - 1 through 9 (of 9 total)
  • prionkor

    (@prionkor)

    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

    Thread Starter reempie

    (@reempie)

    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.

    prionkor

    (@prionkor)

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

    Thread Starter reempie

    (@reempie)

    What’s the difference between:

    “WordPress-adres (URL)”

    And

    “Website adres (URL)”?

    prionkor

    (@prionkor)

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

    Thread Starter reempie

    (@reempie)

    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:)

    prionkor

    (@prionkor)

    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.

    Thread Starter reempie

    (@reempie)

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

    Here is a printscreen: printscreen

    prionkor

    (@prionkor)

    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 🙂

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘301 redirect’ is closed to new replies.