.htaccess rewrite to another port
snippet in htaccess

.htaccess rewrite to another port

user3556

RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule \.(jpg|jpeg|png|gif|css)$ http://domain.com:81/$1 [P,QSA,L]