0

このウェブサイト www.demoeial.be では、すべてのリンクに URL 書き換えを使用しました。記事の書き換えルールは次のとおりです。

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^artikels/([0-9]+)/(.*).dhtml http://www.demoeial.be/articles.php?article_id=$1 [NC]
RewriteRule ^prints/([0-9]+)/(.*).dhtml http://www.demoeial.be/print.php?action=view&print_id=$1 [NC]
RewriteRule ^auteur/([0-9]+)/([0-9]+)/(.*).dhtml http://www.demoeial.be/author.php?action=view&author_id=$1&page=$2 [NC]

RewriteRule ^nieuws/([0-9]+)/$ category.php?cat_id=1&page=$1
RewriteRule ^dossiers/([0-9]+)/(.*)/([0-9]+)/$ dossiers.php?dossier_id=$1&page=$3
RewriteRule ^interviews/([0-9]+)/$ category.php?cat_id=4&page=$1
RewriteRule ^reportages/([0-9]+)/$ category.php?cat_id=5&page=$1
RewriteRule ^cultuur/([0-9]+)/$ category.php?cat_id=6&page=$1
RewriteRule ^opinie/([0-9]+)/$ category.php?cat_id=2&page=$1
RewriteRule ^satire/([0-9]+)/$ category.php?cat_id=7&page=$1
RewriteRule ^politiek-filosofie/([0-9]+)/$ category.php?cat_id=8&page=$1
RewriteRule ^literair/([0-9]+)/$ category.php?cat_id=9&page=$1
RewriteRule ^muziek/([0-9]+)/$ category.php?cat_id=10&page=$1
RewriteRule ^meewerken/$ content.php?content_id=2
RewriteRule ^over/$ content.php?content_id=1
RewriteRule ^zoeken/(.*)/([0-9]+)/$ search.php?search_words=$1&page=$2

RewriteRule ^print/([0-9]+)/$ print.php?page=$1


<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/css text/javascript application/x-javascript application/javascript text/x-component text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
</IfModule>

以前は機能していましたが、しばらくしてからブラウザが明らかにサーバー リンクにリダイレクトされます。たとえば、http://www.demoeial.be/artikels/10436/Studentenoverleg-VGC-levert-weinig-op.dhtmlはhttp://www.demoeial.be/articles.php?article_id=10436 に移動します。その 2 番目のリンクを表示する前に、見栄えの良いリンクを表示し続けました。何が起こったのか、何が変わったのかはわかりませんが、以前は機能していました。推測はありますか?

前もって感謝します。

4

1 に答える 1

0

以前は機能していたかどうかは疑問です。http://置換 URL で始まるルールは、リダイレクトを作成します。このルールを変更します。

RewriteRule ^artikels/([0-9]+)/(.*).dhtml http://www.demoeial.be/articles.php?article_id=$1 [NC]

これに:

RewriteRule ^artikels/([0-9]+)/(.*).dhtml articles.php?article_id=$1 [NC]
于 2013-03-06T16:54:22.523 に答える