• The sites on my network example.com/site1/
    returns 200 with and without the last trailing slash.

    I want it to return 200 with trailing slash only, and 301/302 when it has no trailing slash.

    Because how it is now it’s duplicated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    It’s not duplicated. WordPress (and Google) know what to do.

    What’s in your .htaccess?

    Thread Starter Doug

    (@nicoblog)

    So i shouldn’t worry about it? Cos i tested on nibbler and it told me it was an error. Maybe i shouldn’t stress this?

    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘network site with and without / returns 200’ is closed to new replies.