Mobile app version of vmapp.org
Login or Join
Pierce454

: You can use this, that will work without typing the domain name itself in file, so can be used in any project. RewriteCond %{HTTP_HOST} !^www. [NC] [or] RewriteCond %{HTTP_HOST} !^[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}

@Pierce454

you can use this, that will work without typing the domain name itself in file, so can be used in any project.

RewriteCond %{HTTP_HOST} !^www. [NC] [or]
RewriteCond %{HTTP_HOST} !^[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$
RewriteRule .? www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Pierce454

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme