Redirecting non-www URL to www using .htaccess

后端 未结 7 1511
悲&欢浪女
悲&欢浪女 2021-01-05 12:04

I\'m using Helicon\'s ISAPI Rewrite 3, which basically enables .htaccess in IIS. I need to redirect a non-www URL to the www version, i.e. example.com should redirect to ww

相关标签:
7条回答
  • 2021-01-05 12:35

    Can't you adjust the RewriteCond to only operate on example.com?

    RewriteCond %{HTTP:Host} ^example\.com(.*) [NC]
    
    0 讨论(0)
提交回复
热议问题