0

ここに私の .htaccess ファイルがあります:

RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} !^/?(usersettings\.php|page\.php|news\.php|signup\.php|admin/|plugins/forum/|plugins/.*/.*config\.php)
RewriteCond %{HTTP_REFERER} !^http://(.*\.)?lf1medsoc\.com [NC]
RewriteRule .* - [F,L]

# 2. Redirect all access to the following user agents and files
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/4\.76\ \[ru\]\ \(X11;\ U;\ SunOS\ 5\.7\ sun4u\) [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/5.0$ [OR]
RewriteCond %{HTTP_USER_AGENT} (Bot\ Search|kangen|CaSpEr|MaMa|crew|plaNETWORK|dex|perl\ post$) [NC,OR]
RewriteCond %{REQUEST_URI} (contact\.php|help_us\.php|forum_index\.php|crossdomain\.xml|\.htaccess)
RewriteRule .* http://%{REMOTE_ADDR}/ [R,L]

# 3. Deny access to requests with contact.php or help_us.php in the query
# string, UNLESS those are referred from our own site (e.g. search)
RewriteCond %{QUERY_STRING} (contact\.php|request\.php\help_us\.php|casper)
RewriteCond %{HTTP_REFERER} !^http://(.*\.)?lf1medsoc\.com [NC]
RewriteRule .* - [F,L]

# 4. Redirect empty user agent, UNLESS it's accessing the RSS feed
RewriteCond %{HTTP_USER_AGENT} ^$ 
RewriteCond %{REQUEST_URI} !^/?e107_plugins/rss_menu/rss.php
RewriteRule .* http://%{REMOTE_ADDR}/ [R,L]

# 5. Deny access to these files UNLESS referred from our site.
RewriteCond %{REQUEST_URI} ^/?(top|download|user|search|submitnews|fpw)\.php
RewriteCond %{HTTP_REFERER} !^http://(.*\.)?lf1medsoc\.com [NC]
RewriteRule .* - [F]

http://www.lf1medsoc.com/page.php?19の Facebook リンター結果(一般にアクセス可能、ログイン不要など):

(結果ページ全体)

スクレイプ情報

応答コード: 200 取得した URL: http://www.lf1medsoc.com/page.php?19 正規 URL: http://www.lf1medsoc.com/最終 URL: http://www.lf1medsoc.com/page。修正が必要な php?2エラー

循環リダイレクト パス: 循環リダイレクト パスが検出されました (詳細については、「リダイレクト パス」セクションを参照してください)。

リダイレクト パス

オリジナル: http://www.lf1medsoc.com/page.php?19 og:url: http://www.lf1medsoc.com/ 302: http://www.lf1medsoc.com/page.php?2 og: url: http://www.lf1medsoc.com/ 最終 URL は太字です (これは、メタデータを抽出しようとした URL です)。循環リダイレクト パスの一部である URL が強調表示されます。

htaccessに何か不足していますか?アクセスを許可するFacebookユーザーエージェントを追加する方法はありますか

注: page.php?2 はホームページです (lf1medsoc.com からリダイレクト --> index.php --> page.php?2)

4

1 に答える 1

1

あなたの og:url タグhttp://www.lf1medsoc.com/page.php?2が指しているhttp://www.lf1medsoc.com/

に変更しますhttp://www.lf1medsoc.com/page.php?2

于 2012-05-25T14:45:33.960 に答える