发布于 2025-02-05 11:19:21 字数 470 浏览 4 评论 0原文

下面的代码是正确的,但无法使用

RewriteEngine On 
RewriteRule ^([0-9]+)/$ index.php?pi=$1 [NC,L]

此代码在下面 https://www.ecommercelocal.com.au/accountants/nsw-state/ 旨在删除文件index.php和分页丑陋的URL,并制作SEO友好页面,以更改以下页面(url)

https://www.ecommercelocal.com.au/accountans/nsw-state/index。 php?pi = 2

to https://www.ecommercelocal.com.au/accountants/nsw-state/2/

,但是,它在迁移到Ionos后不再起作用。任何提示都将不胜感激。

Below code is correct but not working

RewriteEngine On 
RewriteRule ^([0-9]+)/$ index.php?pi=$1 [NC,L]

this code is under the folder of
https://www.ecommercelocal.com.au/accountants/nsw-state/
designed to removed file index.php and the pagination ugly URL and make seo friendly pages in order to change the below page (URL)

https://www.ecommercelocal.com.au/accountants/nsw-state/index.php?pi=2

to
https://www.ecommercelocal.com.au/accountants/nsw-state/2/

However, it is not working anymore after migration to ionos. any hint will be appreciated.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文