Mobile app version of vmapp.org
Login or Join
Turnbaugh106

: Have you tried to manually adding the protocol prefix? http://test.example.com won't get redirected. Options -Multiviews RewriteEngine On RewriteCond %{HTTP_HOST} ^www(.*) RewriteCond %{HTTP_HOST} !^www.example.com

@Turnbaugh106

Have you tried to manually adding the protocol prefix?
test.example.com won't get redirected.

Options -Multiviews
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www(.*)
RewriteCond %{HTTP_HOST} !^www.example.com
RewriteRule ^(.*).example.com/(.*)$ .example.com/ [R=301,L]

RewriteCond %{HTTP_HOST} ^example.com
RewriteRule ^(.*)$ www.example.com/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ .php


In the future, look at this article: support.mozilla.org/en-US/questions/714016

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Turnbaugh106

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme