[UPHPU] specify port for mod_rewrite rule
thebigdog
bigdog at venticon.com
Tue Apr 8 13:27:34 MDT 2008
Wade Preston Shearer wrote:
> Is it possible to specify which port to redirect to/on in a mod_rewrite
> rule?
>
> I assume that this…
>
> RewriteRule ^(.*)$ http://example.com:1234/kr/$1 [R=301,NC,L,QSA]
>
>
> …would work, but I don't want the "http://example.com." Is there a way
> to do the equivalent of this?
>
> RewriteRule ^(.*)$ :1234/kr/$1 [R=301,NC,L,QSA]
you might have to use a mod_alias or mod_proxy for it too.
--
ray
More information about the UPHPU
mailing list