Redirect from one URL to another in Apache on Linux
Hello friends, In this opportunity, I will show how to redirect from one URL to another in Apache Web Server on Linux, Let me begin
1. Configure the Server Name in the file /etc/httpd/conf/httpd.conf with the domain name.
2. Configure the VirtualHost directive, where we redirect from one base URL to another URL. To do this, you must use the Redirect with 3 params: the first the code 301 specifies that the redirect is permanent, the second / mean the URL base and finally the third param, https://www.matoosfe.com:8080/aprende is the url to redirect
3. Later, you must restart the service and verify the status, with the commands systemctl restart httpd.service and systemctl status httpd.service respectively.
4. Finally, test the redirect.