Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.

htaccess help!

ian

Joined
Jan 10, 2008
Posts
4,156
Reaction score
812
I've set the following htaccess redirects to cover off all instances of non-https, as well as any potential 404 errors, but I want all traffic to go to www. if the url is typed without. Can someone help!

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
ErrorDocument 404 https://MYURL
 

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Featured Services

Sedo - it.com Premiums

IT.com

Premium Members

AucDom
UKBackorder
Be a Squirrel
Acorn Domains Merch
MariaBuy Marketplace

New Threads

Domain Forum Friends

Other domain-related communities we can recommend.

Our Mods' Businesses

Perfect
Service
Laskos
*the exceptional businesses of our esteemed moderators
Top Bottom