1

I've recently set up a WordPress blog and it's removing the www from all URLs. I've disabled all plug-ins, and it still does that.

My .htaccess is:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

I don't see anything wrong with it.

It's the latest version of WordPress.

How can I fix it? I would like to have all URLs with www.

Thanks in advance.

2 Answers 2

12

You should be able to adjust this in the UI options / preferences in your running WordPress installation.

Go to "General Settings" and change the "WordPress address (URL)" and "Blog address (URL)" to what is appropriate. In your case, I'd expect that you'd need to add the "www" to it.

Here's a screenshot of the section so it's clear: Screen shot of the general settings area. http://theopensourceu.com/wp-content/uploads/2009/10/WP-GeneralSettings.JPG

2
  • ^^ Here's "not" the screenshot is what you really mean?
    – AO_
    Apr 14, 2013 at 17:34
  • Post is old, 404: file not found.
    – Frank V
    Apr 15, 2013 at 4:17
1

This is not related to your .htaccess file. Wordpress versions since 2.3 will do 301 redirects based on the domain you have set set for your "Blog address(URL)" in Settings → General.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.