如何使用 htaccess 将下划线替换为破折号?
好的,这是我的网址:
http://example.com/home/process_login
我想用破折号替换下划线。
因此,http://example.com/home/process-login
将转到上述网址,但它仍会在 URL 栏中显示 process-login
。
希望这是有道理的。我找到的唯一解决方案是重定向,但我不想要重定向。我希望它能像我概述的那样阅读。
Okay here is my url:
http://example.com/home/process_login
I would like to replace the underscore with a dash.
So http://example.com/home/process-login
will go to the above url, but it will still SAY process-login
in the URL bar.
Hopefully this makes sense. The only solutions I've found have been redirects, and I don't want a redirect. I want it to read as I have outlined.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用此代码:
更新:基于您下面的评论
更新 2:基于您下面的评论
Use this code:
UPDATE: Based on your comments below
UPDATE 2: Based on your comments below