Hi all,
I'm new here
I tried for over two days and searched, googled... I almost gave up
it's a debian 10 running apache2 and I simply want to redirect 2 websites
example1.com to example1.com/drupal with HTTPS -->works
example2.com to example2.com/oldhtml --> not working (no need HTTPS for now)
here is what I put on .htaccess I created inside: /var/www/html folder:
RewriteCond %{HTTP_HOST} ^example.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.example.com$
RewriteRule ^(.*)$ http://example.com/drupal/$1 [R=301,L]
Thanks in advance.