Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I’m having an issue with http://domain.com (no www). This URL is serving the ubuntu default page, but http://www.domain.com, https://www.domain.com both redirect to https://domain.com and server the correct website from the correct location. I would like domain.com (no www) to also redirect to https://domain.com.
I’m having trouble getting all of the redirects to work at the same time. Im not sure what I’m doing wrong as I don’t have a ton of experience with rewrite rules. Any suggestions would be greatly appreciated.
Here’s my conf file.
<VirtualHost *:80>
ServerAdmin ####@gmail.com
ServerName thedenveradeventure.com
ServerAlias www.thedenveradventure.com
DocumentRoot /var/www/thedenveradventure/public_html
ErrorLog /var/log/php_errors.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/thedenveradventure/public_html>
RewriteEngine On
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
RewriteEngine On
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
RewriteCond %{HTTP_HOST} !^dev.thedenveradventure.com$
RewriteCond %{HTTP_HOST} !^www\.[NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
</VirtualHost>
gerard
Jon Harris
orbitstorm88
rem3n
yolanda smith
301276acdc124dd982fe86364ba8c4
30ddab6038c044188d489290785dcb
699c9bc0a2c34f248e792cb8d2c6ab
Kent Morlan
sylvaticus
agitechcr
8b8f3c8ea96345bf8ddb0a59a008e2