Title: http://example.com vs www.example.com
Last modified: August 19, 2016

---

# http://example.com vs www.example.com

 *  Resolved [schweigenthaler](https://wordpress.org/support/users/schweigenthaler/)
 * (@schweigenthaler)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/httpexamplecom-vs-wwwexamplecom/)
 * My default WordPress addresses are [http://example.com](http://example.com)
    
   Unfortunately Firefox has begun to insert wwww (making [http://www.example.com](http://www.example.com)
   the address). I have a temporary workaround for me, but obviously this is going
   to happen to other Firefox users. Does anyone know of a way to get [http://www.example.com](http://www.example.com)
   to resolve to [http://example.com](http://example.com) ? second question: can
   wordpress be installed with address [http://www.example.com](http://www.example.com)
 * thank you.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/httpexamplecom-vs-wwwexamplecom/#post-2065821)
 * Add to your .htaccess file:
 *     ```
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteCond %{HTTP_HOST} ^www.example\.com$ [NC]
       RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]
       </IfModule>
       ```
   
 *  [Sarah](https://wordpress.org/support/users/a2zarticlesbox/)
 * (@a2zarticlesbox)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/httpexamplecom-vs-wwwexamplecom/#post-2065874)
 * Hi i am looking for the same problem but the above code mention does not work.
   please help me out i want change my domain name from [http://a2zarticlesbox.com](http://a2zarticlesbox.com)
   to [http://www.a2zarticlesbox.com](http://www.a2zarticlesbox.com)
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/httpexamplecom-vs-wwwexamplecom/#post-2065875)
 * That’s because you’re looking for exactly the opposite. Try:
 *     ```
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
       RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
       </IfModule>
       ```
   
 *  [Sarah](https://wordpress.org/support/users/a2zarticlesbox/)
 * (@a2zarticlesbox)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/httpexamplecom-vs-wwwexamplecom/#post-2065939)
 * Thanks, And my site can’t open from mobile browers however my site supports mobiles.
   it shows reply sized is zero squid etc.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/httpexamplecom-vs-wwwexamplecom/#post-2065947)
 * That’s nothing to do with .htaccess. Please post a new topic.
 *  Thread Starter [schweigenthaler](https://wordpress.org/support/users/schweigenthaler/)
 * (@schweigenthaler)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/httpexamplecom-vs-wwwexamplecom/#post-2066064)
 * Thank you very much.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘http://example.com vs www.example.com’ is closed to new replies.

## Tags

 * [Wordpress Address](https://wordpress.org/support/topic-tag/wordpress-address/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [schweigenthaler](https://wordpress.org/support/users/schweigenthaler/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/httpexamplecom-vs-wwwexamplecom/#post-2066064)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
