Content
Domain redirection
Started May 16, 2019 07:49 · 1 reply · 1 participant
I was using mydomain,com/project but I also wanted to be able to use mydomain.com. Any help please?
I have tried to place .htaccess in /opt/openproject/public and configured redirection but still not working.
I tried this .htaccess:
RewriteEngine on
RewriteRule ^project/(.*)$ /$1 [R=301,L]
I also tried this:
RewriteEngine on
RewriteRule ^$ project /
Not that /opt/openproject/public is autoconfigured in apache virtual host as the root directory.
Please any help will be appreciated.