.htaccess - Apache Mod-Rewrite to remove port number -
i clean uri application is:
http://app.example.com:8081/app/welcome ideally, become:
http://app.example.com/welcome i have enable rewrite module in conf file. in site root created .htaccess file following:
rewriteengine on rewritecond %{http_host} ^(app.example.com):8081$ [nc] rewriterule ^(.*)$ http://%1/$1 [l,r=301] nothing happens when dereference uri. ideas on how can work?
Comments
Post a Comment