I wanted to redirect https://www.domain.rs to https://mysite.domain.rs AND https://www.mysite.rs/this_is_some_page.html to https://mysite.domain.rs/this_is_some_page.html... How can I do it?
I have tried this:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?mysite\.rs$ [NC]
RewriteRule ^(.*)$ https://mysite.domain.rs/ [L,R=302]
But this only redirects me to https://mysite.domain.rs regardless of what U. R. L. continues after the /. I wanted it to be redirected to whatever U. R. L. is entered as https://www.domain.rs/this_is_my_page.php to https://mysite.domain.rs/this_is_my_page.php
Any help?