2

.htaccess で問題が発生しています ... すべてのページが 1 つのページにリダイレクトされます

ここに私の.htaccessがあります

編集済み

 <FilesMatch "\.(html|css|js|gif|jpg|jpeg|png|ico|swf)$">
    Header set Cache-Control "max-age=29030400, proxy-revalidate"
</FilesMatch>
<ifmodule mod_deflate.c>
    <filesmatch \.(css|html|js|php|xml)$>
        setoutputfilter deflate
    </filesmatch>
</ifmodule>
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,QSA,NC,L]
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^about-trust(.*)$ /trust_detail.php?id=no$1 [L]
    RewriteRule ^college(.*)$ /gallery.php?type=college$1 [L]
    RewriteRule ^trust(.*)$ /gallery.php?type=trust$1 [L]
    RewriteRule ^academy(.*)$ /gallery.php?type=academy$1 [L]
    RewriteRule ^press(.*)$ /gallery.php?type=press$1 [L]


</IfModule>

すべてのページが gallery.php にリダイレクトされます。trust_detail.php を開こうとすると、gallery.php にもリダイレクトされます。

4

1 に答える 1