.htaccess - .htaccess 规则在 GoDaddy 服务器上不起作用
问题描述
以下 .htaccess 几个月前停止工作,我不知道为什么。
Options FollowSymLinks
RewriteEngine On
RewriteRule ^home*$ index.php [NC,L]
RewriteRule ^dashboard*$ index.php?view=dashboard [NC,L]
RewriteRule ^new-safar*$ index.php?view=new-safar [NC,L]
RewriteRule ^safars*$ index.php?view=safars [NC,L]
RewriteRule ^active-safars*$ index.php?view=active-safars [NC,L]
RewriteRule ^pre-registration*$ index.php?view=pre-registration [NC,L]
RewriteRule ^safars/kun-safar/([0-9]+)/edit-registration/([0-9]+) index.php?view=edit-kun-registration&safarid=$1&kunregid=$2 [NC,L]
RewriteRule ^safars/kun-safar/([0-9]+)/new-registration index.php?view=new-kun-registration&safarid=$1 [NC,L]
RewriteRule ^safars/kun-safar/([0-9]+)/new-pre-registration index.php?view=new-kun-preregistration&safarid=$1 [NC,L]
RewriteRule ^safars/kun-safar/([0-9]+) index.php?view=kun-safar&safarid=$1 [NC,L]
RewriteRule ^oops index.php?view=oops [NC,L]
RewriteRule ^register-yourself register-yourself.php [NC,L]
RewriteRule ^its-verification*$ its_verifications.php [NC,L]
例如,此 url https://zadmin.colomboshabab.com/safars给出 404 错误。
该网站正在通过cloudflare,但它在更早的时候工作。它托管在GoDaddy服务器上。
解决方案
推荐阅读
- algorithm - 最终用户可以做些什么来实际了解特定应用程序的算法是如何工作的?
- api - 为什么 Alpha Vantage UK 股票 API 没有输出?
- c# - 向用户发送 smtp 电子邮件失败,出现错误:发送邮件失败
- html - socket.io 在 node.js html 客户端挂起
- javascript - 如何在带有传单的地图中删除或不显示标记?
- python - Python是否可以将元组坐标存储在嵌套字典中并从嵌套字典中的单个字典访问单个坐标?
- php - Imagick 不添加元数据 PHP
- powershell - 如何检查任务是否在我的用户上运行?
- azure - 如何在 azure function v1 中使用最新的 SharePoint PnP Core Online
- python - 我正在尝试在页面上显示某些项目,但我的 if 语句有问题