首页 > 解决方案 > .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服务器上。

标签: .htaccesscloudflare

解决方案


推荐阅读