简单的mod编写

发布于 2024-08-23 11:35:48 字数 430 浏览 2 评论 0原文

我有一个简单的 mod_rewrite 问题。

我需要在 .htaccess 文件中写入什么内容才能具有:

http://www.example.com/index.php?route =帐户/登录

我希望 URL 看起来像这样

http://www.example.com/account/login

谢谢。

I have a simple mod_rewrite question.

What do I need to write in the .htaccess file to have:

http://www.example.com/index.php?route=account/login

I want the URL to look like this

http://www.example.com/account/login

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦里兽 2024-08-30 11:35:48
RewriteBase /
RewriteRule ^(.*)$ /index.php?route=$1
RewriteBase /
RewriteRule ^(.*)$ /index.php?route=$1
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文