• Is taking out the “www.” in both the wordpress and blog address under “general options” in the admin panel the same thing as doing a 301 redirect (www to non-www) in the htaccess file?

    I’ve read somewhere that in WP 2.3 version, the 301 redirect code is no longer needed in the htaccess file, and I wanted to know if this was the solution.

    thanks,

    Dirk

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    WordPress 2.3 has a new feature called “canonical URLs” which will indeed redirect www to non-www or vice-versa.

    Whenever you reach a WordPress page and the URL does not match what WordPress thinks the actual permalink is, it redirects to the correct permalink (301).

    So whatever you have as the URL on the Options->General page will be assumed to be the correct URL and will get redirected to if needed.

    Thread Starter dirkd80

    (@dirkd80)

    thank you otto

    so the canonical url feature is just automatic and there is nothing I need to do to activate it?

    I was putting the 301 redirect code in the htaccess file to avoid duplicate content. so now after version 2.3 that code is no longer needed in order to prevent the dup content?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    so the canonical url feature is just automatic and there is nothing I need to do to activate it?

    Yes.

    I was putting the 301 redirect code in the htaccess file to avoid duplicate content. so now after version 2.3 that code is no longer needed in order to prevent the dup content?

    Correct. That was the purpose of it, to force search engines to get redirected to the correct URLs and eliminate dupe content issues.

    I’ve upgraded to 2.3.3 and it doesn’t looks like solidsmack.com is redirecting to https://www.solidsmack.com

    I’ve looked at other sites on 2.3.x and the www pops up when you enter only thesite.com

    any ideas?

    I am not sure if this will help, but I recently wrote an article sharing my customized htaccess technique for comprehensive WordPress permalink canonicalization. It works at the Apache level (via htaccess) and thus saves a few server resources by avoiding extraneous PHP processing. Works great for ALL versions of WordPress. Check it out at:

    https://perishablepress.com/press/2008/01/16/comprehensive-htaccess-canonicalization-for-wordpress/

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

    This is working to me .

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘301 Redirect Question (www to non-www)’ is closed to new replies.