[UPHPU] specify port for mod_rewrite rule

Wade Preston Shearer lists at wadeshearer.com
Tue Apr 8 13:07:19 MDT 2008


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]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20080408/34aa701e/smime.bin


More information about the UPHPU mailing list