.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

Popular posts from this blog

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -