如果找不到LastPart ID /页面,如何显示上一页?
如何显示主索引文件的给定页面?
在我的URL 中 我想显示页面
https://learnpk.xyz/view.php
我在.htaccess
文件中使用以下命令。
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
How can i show the given page insted of main index file?
in my url https://learnpk.xyz/view/88
it shows https://learnpk.xyz/index.php
but
i want to show page https://learnpk.xyz/view.php
i am using below commands in .htaccess
file.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在网站root .htaccess中尝试这些规则:
You can try these rules in your site root .htaccess: