Hello
I have been trying various means of redirecting a web address to /moodle site page, with no success. I've installed moodle3.9 on a VPS, via command prompt.
How do I set up a permanent server redirect? to the Moodle directory from a web address?
These .htaccess files don't work, but I'm not sure why.
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} moodle
RewriteRule ^(.*)$ http://www.mysite.com/moodle/$1 [R,L]
or
Redirect 302 / http://example.com/moodle
Perhaps it is easier via Ubuntu ?
Would anyone be kind enough to point me in the right direction please?