我无法找出一个错误,当我尝试点击我网站上的 link 时,它出现了 404

I am not able to figure out a bug that is when I try to click on a link on my website it appears the 404

我的网站使用 PHP 编码并托管在 Hostinger 中。问题是,当我想转到另一个 link,例如联系部分或关于部分时,它会显示 404 未找到页面。但是,我在本地服务器上尝试了相同的文件并且工作正常。问题出在代码上还是主机提供商上。

link 我的网站:http://tranvio.com

.htaccess:

RewriteEngine on
RewriteBase /public_html
RewriteRule ^details-(.*)?$ index.php?a=details&id= [L]
RewriteRule ^recovery-(.*)?$ index.php?a=recovery&hash= [L]
RewriteRule ^refid=(.*)?$ index.php?refid= [L]
RewriteEngine On
RewriteRule ^testimonials?$ TESTIMONIAL_FILE_PATH_HERE [L]

将您的 .htaccess 文件放入您的根目录文件夹中(如果不存在)。

已解决的问题:

将 .htaccess 编辑为:

RewriteEngine on
RewriteBase /
RewriteRule ^(login|register|forgot-
password|testimonials|logout|submit-testimonial)?$ index.php?a= [L]
RewriteRule ^page/(contact|about|faq|privacy-policy|terms-of-service)?$ 
index.php?a=page&b= [L] RewriteRule ^account/(exchanges|wallet|wallet_exchange|deposit|referrals|settings|with
drawals|withdrawal)?$ index.php?a=account&b= [L]
RewriteRule ^account/exchanges/(.*)?$ index.php?
a=account&b=exchanges&page= [L]
RewriteRule ^account/exchange/(.*)?$ index.php?
a=account&b=exchange&id= [L]
RewriteRule ^account/referrals/(.*)?$ index.php?
a=account&b=referrals&page= [L]
RewriteRule ^ref/(.*)?$ index.php?refid= [L]
RewriteRule ^password-recovery/(.*)?$ index.php?a=password-
recovery&hash= [L]
RewriteRule ^become_payment/(.*)?$ index.php?a=become_payment&id= [L]`