.htaccess redirect to external URL while hiding redirect

前端 未结 5 2228
醉梦人生
醉梦人生 2020-12-18 06:56

I want to be able to redirect a domain pointed to my webhosting to an external domain.

For example, I have this in my .htaccess:

RewriteCond %{HTTP:         


        
5条回答
  •  借酒劲吻你
    2020-12-18 07:29

    Bit long ago, but I'll answer the question anyway for those who come here by Google (like me). The answer is really simple:

    In your htaccess, remove the R=301 part (and the comma of course).

    R=301 means you do it via a 301 redirect. You don't want that

提交回复
热议问题