WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] www to non-www (5 posts)

  1. BillieJean
    Member
    Posted 6 years ago #

    Hi all,

    i'm new to this forum and have a problem with a redirect.

    I set up the following code on my .htaccess file to redirect my www to non-www

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

    It owrked fine for the main part of my site but as soon as i go to the blog it cannot find the page!!! I am very new to wordpress and would love to resolve this but am not very technical so i appreciatte your patience in advance

    Thanks

  2. Lester Chan
    Member
    Posted 6 years ago #

    ensure that the site url in your wordpress options the url to your site is without www as well, or even try to regenerate permalink

  3. BillieJean
    Member
    Posted 6 years ago #

    legend

  4. Lester Chan
    Member
    Posted 6 years ago #

    legend?

  5. aparachitt
    Member
    Posted 6 years ago #

    Read The post from below link to have a proper Guide to add www to yours wordpress Url
    Link - http://scrapur.com/index/wordpress/add-remove-or-redirect-www-to-wordpress-domain-url/

    This is working to me .

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags