Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter asherwolf

    (@asherwolf)

    UPDATE: I just got Bad Behavior to ignore the sidebar login if it’s from a ‘different URL’. However, the cookies are still awry when not using www prefix. Thanks again,
    Asher

    A simple workaround might be to simply force the site to add the www if loaded without. Check your host for the correct .htaccess syntax for your specific server, but this often works, assuming you’re on a Linux server with Apache:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^yourdomain.com
    RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]

    Please be careful when editing your .htaccess file and make a backup of the original file. Use a plain-text editor and upload in ASCII format only. Make sure you first download the live .htaccess so you don’t overwrite anything.

    Thread Starter asherwolf

    (@asherwolf)

    I actually did that. I placed:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} !^www\.sitename\.com [NC]
    RewriteRule ^(.*)$ http://www.sitename.com/$1 [R=301,L]
    </IfModule>

    Above # BEGIN wordpress

    I’m just worried that this will effect web-crawlers and -spiders. Things I really want. Does anybody know if this is a legitimate concern? I haven’t been able to find a suitable explanation out on the internet for me.

    Thanks for the help!
    Asher

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Ideally, you don’t want the site to be available on both www and non-www versions. Pick one and stick with it.

    Most people prefer non-www nowadays, really. It’s shorter, and “www” is kinda redundant to begin with.

    Doing the non-www to www redirect is actually good for SEO, because there is no chance of a duplicate-content penalty, since search engines will now spider only one URL per page.

    Thread Starter asherwolf

    (@asherwolf)

    Thanks for the input guys. I’ll worry less about it now.

    Thanks again,
    Asher

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WordPress and WWW prefix’ is closed to new replies.