404 Without Trailing Slash (URL End /)

Asked 2 years ago, Updated 2 years ago, 116 views

The situation is as follows, and I think it's due to the server's configuration.
The cause cannot be determined.I would appreciate it if you could give me some advice.

production environment
https://example.com/test link
→Transition to https://example.com/test/

US>Local
https://example.com/test link
→ 404 Error (Copy URL to http://example.com/test/)

apache

2022-09-30 21:44

1 Answers

Check to see if the configuration file in the .htaccess or Apache conf folder contains DirectorySlashOff.

https://httpd.apache.org/docs/current/en/mod/mod_dir.html#directoryslash


2022-09-30 21:44

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.