怎么实现url不加“/”也能访问目录列表 #17

Closed
opened 2021-11-14 11:35:32 +08:00 by HCARX · 5 comments
HCARX commented 2021-11-14 11:35:32 +08:00 (Migrated from github.com)

怎么实现url不加“/”也能访问目录列表,谢谢

怎么实现url不加“/”也能访问目录列表,谢谢
SomeBottle commented 2021-11-14 12:34:37 +08:00 (Migrated from github.com)

我刚刚提交了一次更新,现在你在访问
https://xxx/Documents 这种末尾不带/的url时会给你自动重定向到 https://xxx/Documents/

如果是需要访问https://xxx/Documents 来渲染目录,我只能很遗憾的说没有支持的计划,因为这样很有可能导致多处路径问题。

我刚刚提交了一次更新,现在你在访问 ```https://xxx/Documents ```这种末尾不带/的url时会给你自动重定向到 ```https://xxx/Documents/ ``` 如果是需要访问```https://xxx/Documents ```来渲染目录,我只能很遗憾的说没有支持的计划,因为这样很有可能导致多处路径问题。
HCARX commented 2021-11-14 12:38:12 +08:00 (Migrated from github.com)

我刚刚提交了一次更新,现在你在访问 https://xxx/Documents 这种末尾不带/的url时会给你自动重定向到 https://xxx/Documents/

如果是需要访问https://xxx/Documents 来渲染目录,我只能很遗憾的说没有支持的计划,因为这样很有可能导致多处路径问题。

非常感谢!

> 我刚刚提交了一次更新,现在你在访问 `https://xxx/Documents `这种末尾不带/的url时会给你自动重定向到 `https://xxx/Documents/ ` > > 如果是需要访问`https://xxx/Documents `来渲染目录,我只能很遗憾的说没有支持的计划,因为这样很有可能导致多处路径问题。 非常感谢!
SomeBottle commented 2021-11-14 12:39:23 +08:00 (Migrated from github.com)

感谢反馈,这也是个比较久的遗留问题了,解决了就好(づ ̄3 ̄)

感谢反馈,这也是个比较久的遗留问题了,解决了就好(づ ̄3 ̄)
HCARX commented 2021-11-17 01:44:32 +08:00 (Migrated from github.com)

您好,未完全解决问题。
访问
https://od.xbottle.top/Videos/Abroad/
会被重定向到
https://od.xbottle.top/Videos/Videos/Abroad/

出现两个Videos

您好,未完全解决问题。 访问 https://od.xbottle.top/Videos/Abroad/ 会被重定向到 https://od.xbottle.top/Videos/Videos/Abroad/ 出现两个Videos
SomeBottle commented 2021-11-17 08:56:06 +08:00 (Migrated from github.com)

所以说动路径这方面确实很容易出问题😂,现在已经解决了。

https://github.com/SomeBottle/OdIndex/releases/tag/4.5

所以说动路径这方面确实很容易出问题😂,现在已经解决了。 https://github.com/SomeBottle/OdIndex/releases/tag/4.5
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: SomeBottle/OdIndex#17
No description provided.