WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] www redirect (3 posts)

  1. eric.hoegee
    Member
    Posted 1 year ago #

    Hi All,

    this is my htaccess file:

    # 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

    I want my domain to show http://www.paragnost-info.nl instead of http://paragnost-info.nl

    I looked up the following code:

    Options +FollowSymlinks
    RewriteEngine On
    RewriteCond %{http_host} ^paragnost-info.nl [NC]
    RewriteRule ^(.*)$ http://www.paragnost-info.nl/$1 [R=301,L]

    When i enter this in my .htaccess i can't reach the site. Most probably i have to merge the 2 together. But i don't know how.

    Somebody here who can point me in the right direction?

  2. Delete the second code snip from .htaccess and simply add www to both site URLs in Dashboard>>Settings>>General and then logout/login.

  3. eric.hoegee
    Member
    Posted 1 year ago #

    Damn, that was easy.... Thanks a bunch! :)

Topic Closed

This topic has been closed to new replies.

About this Topic