简体   繁体   中英

Wordpress says page “not found” if includes trailing slash in URL?

For every page on this subdomain, if there is a trailing slash it always says page not found, the page only loads correctly without the slash at the end, eg it doesn't work : abc.com/us/ + redirects to abc.com/us/: it does work abc.com/us

Every other subdomain in the multisite works correctly

In your .htaccess file,

Add the following .htaccess code to fix the trailing slash issue.

RedirectMatch 301 ^(.+)/$ $1

The above code will remove trailing slash (/) from the URL except the root.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM