I installed ePort on two different ports on one of my servers, all http requests are managed by Apache at default (80). Now I have a subdomain for the domain and I want to request another port (10024) for the sub domain by Apache.
I have tried to use
Rewighting On Rewriting \% {HTTP_REFERER} ^ sub.domain.com $ [nc] Rewritable * Http://www.domain.com:10024/dir/page.php [R, L]
but do not get the required results.
Any suggestions?
Thanks in advance
convert HTTP_REFERER to HTTP_HOST and rewrite the rule Try:
rewrite% {HTTP_HOST} ^ sub.domain.com $ [NC] RewriteRule ^ / $ http://www.domain.com:10024/dir/page.php [R, L]
Comments
Post a Comment