Ready to get started?Download WordPress


[resolved] Trailing dot redirects to signup (2 posts)

  1. OCNJ
    Posted 2 years ago #

    I have several domains configured under wp.example.com/

    If someone types in one of my sites "example2.com." with a trailing "." they are redirected to:


    I want them to be redirected from "example2.com." to "example2.com/" (I have several domains so I want them all to redirect that way, not just example2.com).

  2. OCNJ
    Posted 2 years ago #

    I got this to work. You need to add these lines to the .htaccess but it must be before the rewrite to add a trasiling slash:

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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.