regex - Redirect from port 80 to 2222 and change the URL on a subdomain -
i trying remove port number on end of url, additionally trying map different url also.
for example have url
subdomain.example.com
the url visit see directory
subdomain.example.com:2222/path/path/
i using apache , have subdomain.example.com in /sites-available folder. have .htaccess in directory defined in vhosts that.
i have tried redirect (in subdomains .htaccess)
rewriteengine on rewritecond %{server_port} 80 rewriterule ^path/path/(.*) http://subdomain.example.com:2222/$1 [p,l]
but doesnt seem redirect
also ive tried set vhosts
<virtualhost *:2222> [my setting in here] </virtualhost>
reloading apache , a2ensite etc. nothing seems fix it.
Comments
Post a Comment