• 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:

    https://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)
  • Thread Starter OCNJ

    (@ocnj)

    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 (.*) https://%1/$1 [L,R=301]
Viewing 1 replies (of 1 total)
  • The topic ‘Trailing dot redirects to signup’ is closed to new replies.