Redirecting non-www URL to www using .htaccess

后端 未结 7 1576
悲&欢浪女
悲&欢浪女 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:11

    Why dont you just have something like this in your vhost (of httpd) file?

    ServerName: www.example.com
    ServerAlias: example.com
    

    Of course that wont re-direct, that will just carry on as normal

提交回复
热议问题