我无法弄清楚当我尝试单击网站上的链接时,它似乎是404



我的网站在PHP中编码并托管在Hostinger中。问题在于,当我想转到另一个链接时,例如联系部分或大约部分,似乎找不到404页。但是,我在本地服务器上尝试了相同的文件,并且可以正常运行。代码或主机提供商的问题是。

我网站的链接:http://tranvio.com

.htaccess:

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

如果不存在,则将.htaccess文件放入root Directory文件夹中。

问题已解决:

对此编辑.htaccess:

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

最新更新