I have Node.js/Angularjs/Gulp application running on www.myurl.com:3001 and I would like to have a "clean" URL www.myurl.com. So I would like to redirect the traffic from www.myurl.com to www.myurl.com:3001, which is pretty straight foreward with a .htaccess mod rewrite condition. But what I get is now a redirect from www.myurl.com to www.myurl.com:3001 and I would like to see the application running on port 3001 under the URL without any additional port, so that any user that visits the URL www.myurl.com sees the application running on www.myurl.com:3001, but has a "clean" URL without any port number in his browser:www.myurl.com.
What would be the best way to do it? Here´s what I got so far:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.myurl.com [NC]
RewriteRule (.*) http://www.myurl.com:3001/$1 [R=301,L]
Any hints or help would be appreciated, thanks!