0

これは私の .htaccess ファイルです:

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteRule ^es$ index.php?lang=es_ES [L]
RewriteRule ^pt$ index.php?lang=pt_BR [L]
RewriteRule ^en$ index.php?lang=en_US [L]

RewriteRule ^index.php index.php [L]

RewriteRule ^inicio$ index.php [L]
RewriteRule ^nosotros$ us.php [L]
RewriteRule ^portfolio$ portfolio-masonry.php [L]
RewriteRule ^contacto$ contact.php [L]

RewriteRule ^home$ index.php [L]
RewriteRule ^us$ us.php [L]
RewriteRule ^contact$ contact.php [L]

RewriteRule ^proyectos/([0-9]+)-([a-zA-Z0-9-]+)$ portfolio-single.php?id=$1 [NC,L]
RewriteRule ^projects/([0-9]+)-([a-zA-Z0-9-]+)$ portfolio-single.php?id=$1 [NC,L]

</IfModule>

そして、ここにサイトがあります:http://testing.fyrastudio.com/WEB_fyrastudio.com/v3/

すべてがうまくいっています。しかし、サイトを英語で表示することを選択してから、About us または Contact をクリックすると、サーバーは 404 not found エラーを返します。ただし、次の 2 つのルールに従ってください。

RewriteRule ^us$ us.php [L]
RewriteRule ^contact$ contact.php [L]

サイトの他の部分と同じように機能するはずです。

私は何が欠けていますか?

ありがとう

4

1 に答える 1