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 have 2 domains:
Both domains have the same DocumentRoot setup in VirtualHost:
First looks like:
<VirtualHost *:80>
DocumentRoot /var/www/example-1
ServerName www.example-1.com
ServerAlias example-1.com
</VirtualHost>
Second looks like:
<VirtualHost *:80>
DocumentRoot /var/www/example-1
ServerName www.example-2.com
ServerAlias example-2.com
</VirtualHost>
However, I want the second domain to redirect to a specific file with a special query to display different content. On my local host I have been able to get this setup to work, but I have been unsuccessful at mimicking this on my remote DO Ubuntu server.
I’m currently rewriting using mod rewrite conditioning. This is my local setup:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example-2.com
RewriteRule ^$ page.php?foo=bar[QSA]
</IfModule>
The first domain, example-1.com by default will showcase page.php content without any mod rewrite rules or query needed as I have designed it to do so. The second domain, example-2.com on the other hand will need to show specific content different from what example-1.com shows. Again, this all works locally for me, but when I imitate this all on the remote server I get no dice. Any help would be greatly appreciated, thanks!
gerard
Jon Harris
orbitstorm88
rem3n
yolanda smith
301276acdc124dd982fe86364ba8c4
30ddab6038c044188d489290785dcb
699c9bc0a2c34f248e792cb8d2c6ab
Kent Morlan
sylvaticus
agitechcr
8b8f3c8ea96345bf8ddb0a59a008e2