I've scoured Google and this site pretty extensively, and I must be missing something. None of the suggestions I've found worked.
The problem is simple. I have links coming in to my site using http://domain.name./
but I want all visitors redirected to htt开发者_开发知识库p://domain.name/
without the trailing dot.
How can I do that?
RewriteEngine On
RewriteCond %{HTTP_HOST} (.*)\.$
RewriteRule (.*) http://%1/$1 [L,R=301]
精彩评论