tags:

views:

70

answers:

1

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 http://domain.name/ without the trailing dot.

How can I do that?

+3  A: 
RewriteEngine On

RewriteCond %{HTTP_HOST} (.*)\.$
RewriteRule (.*) http://%1/$1 [L,R=301]
toscho