RewriteRule using HTTP_HOST and a different port

Viewed 11029

I need to use the HTTP_HOST header in a RewriteRule but change the port I cannot use SERVER_NAME as it will be different from the host header (which is what I need)

Is there a way to trim the :port off of the HTTP_HOST variable for mod_rewrite?

1 Answers
Related