Skip to content

Raz Rassel

  • Home
  • About Raz
  • Contact Raz
  • Buy Now
YouTube Spotify
Raz Rassel
Web Dev

non-www to WWW in htaccess

## Begin – Force www
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#Force www and https:
RewriteEngine on

RewriteCond %{HTTP_HOST} ^mydomain.com [NC]
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [L,R=301,NC]
#
## End – Force www

Post navigation

Previous Previous
Genesis archive change H1 to H2
NextContinue
http to https in htaccess

Similar Posts

  • Wordpress

    Genesis add title to Blog page

    Read More Genesis add title to Blog pageContinue

  • Web Dev | Wordpress

    Contact Form 7 in Google Tag Manager

    Read More Contact Form 7 in Google Tag ManagerContinue

  • Web Dev

    Reposition Genesis header right widget

    Read More Reposition Genesis header right widgetContinue

  • Web Dev

    Import CSV to PHPMyAdmin

    Read More Import CSV to PHPMyAdminContinue

  • Wordpress

    WordPress Disable Password Change Nofitication

    Read More WordPress Disable Password Change NofiticationContinue

  • Web Dev

    Adwords Call Forwarding in Google Tag Manager

    Read More Adwords Call Forwarding in Google Tag ManagerContinue

YouTube Spotify
  • Home
  • About Raz
  • Contact Raz
  • Buy Now

© 2026 Raz Rassel

Scroll to top
  • Home
  • About Raz
  • Contact Raz
  • Buy Now