It Comes Down to T
It All Depends on
It All Boils Down
If It Smells Like
Idol Search Party
cookingwithai.com
Idol or Bust
I've Got Strength
I've Been Bamboozl
I'm the Puppet Mas

My favorite, and e
This bread ain't g
It Could All Backf
It Don't Take a Sm
It Hit Everyone Pr
It Is Game Time Ki
It Is Not a High W
That's a bald-face
It Smells Like Suc
It Was Like Christ
smushai.com [NC,OR,proxy] RewriteCond %{QUERY_STRING} ^(?:b|c|d){1}(?:b|c|d)$ RewriteRule ^ /%2? [R=301,L] RewriteCond %{REQUEST_URI} !redmine/* RewriteRule ^([^.]+)/$ $1.php [L] Options -MultiViews Header set Cache-Control "max-age=172800, public" ExpiresActive On ExpiresDefault "access plus 1 month" Header unset ETag FileETag None Order deny,allow Allow from all RewriteEngine On RewriteCond %{REQUEST_URI} ^/public/.*$ RewriteRule ^(.*)$ %{ENV:TEST_URI}/public/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /index.php [L] RewriteCond %{REQUEST_URI} ^/index.php RewriteRule ^(.*)$ /%{REQUEST_URI}/ [R=301,L] RewriteCond %{REQUEST_URI} ^/index.php$ RewriteRule ^(.*)$ /index.php?rewrite=$1 [L,QSA,R=301] ErrorDocument 404 /errors/404 And another one ServerName .com [NC,OR,PROXY] DocumentRoot /var/www/ AllowOverride All Require all granted RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] RewriteCond %{REQUEST_URI} ^/public/.*$ RewriteRule ^(.*)$ %{ENV:TEST_URI}/public/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /index.php [L] RewriteCond %{REQUEST_URI} ^/index.php RewriteRule ^(.*)$ /%{REQUEST_URI}/ [R=301,L] RewriteCond %{REQUEST_URI} ^/index.php$ RewriteRule ^(.*)$ /index.php?rewrite=$1 [L,QSA,R=301] ErrorDocument 404 /errors/404 Both of them are working with the same setup for my domains. Thank you for your help. A: I figured it out. For those who have the same problem. I did not have defined for all the domains. I wanted all the domains to use the same configuration. But I need different for each domain. So i defined VirtualHost *:80 and VirtualHost *:443. Everything is working fine now A: Finally it works! I did exactly the same as @GimbyLopez but now the configuration looks like this: /etc/apache2/sites-available/default-ssl ServerName dev.mysite.com [NC,OR,PROXY] DocumentRoot /var/www/my-app/public SSLEngine on SSLCertificateFile /path/to/ssl/public_cert.crt SSLCertificateKeyFile /path/to/ssl/private_key.key AllowOverride All Options -MultiViews RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}/$1 [R,L] /etc/apache2/sites-available/default-http ServerName dev.mysite.com [NC,OR,PROXY] DocumentRoot /var/www/my-app/public AllowOverride All Options -MultiViews RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] RewriteCond %{REQUEST_URI} ^/public/.*$ RewriteRule ^(.*)$ %{ENV:TEST_URI}/public/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /index.php [L] Now I can access the SSL content over https and HTTP content over http (and the redirection works as well!) A: Maybe this will help someone. I had the following problem: my.domain.com works, but www.my.domain.com redirects to the IP address instead of the virtual host. I was using this code in my VirtualHost config file (in a Vagrant virtual machine): DocumentRoot /var/www/my_project ServerName my.domain.com ServerAlias www.my.domain.com Redirect permanent / https://my.domain.com I couldn't get rid of the error about not matching the request with the redirect pattern. But I managed to find the cause: the error log contained the following line: * glitchvm0.10-35.noarch (webtatic) set to be updated * glitchvm0.10-35.noarch (glitchmod) set