Support » Networking WordPress » Trailing dot redirects to signup

  • Resolved OCNJ

    (@ocnj)


    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:

    http://wp.example.com/wp-signup.php?new=example2.com

    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).

Viewing 1 replies (of 1 total)
  • 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]
Viewing 1 replies (of 1 total)
  • The topic ‘Trailing dot redirects to signup’ is closed to new replies.