在我创建的页面上似乎显示随机重定向301.随机我的意思是,人们正常使用页面然后突然有一天页面上的一个链接开始重定向到索引页面 - 并且该链接工作之前和正在使用其他计算机但不在此计算机上,导致Redirect 301永久缓存。此事也不会发生在谷歌浏览器上 - 至少没有人使用Chrome报告此类错误。 firefox缓存中的重定向之一: Firefox redirect screenshot
Page是Joomla!我的htaccess看起来像这样:
##
# @package Joomla
# @copyright Copyright (C) 2005 - 2015 Open Source Matters. All rights reserved.
# @license GNU General Public License version 2 or later; see LICENSE.txt
##
# -----------------------------------------------------------------------
# Defining MIME types to ensure the web server actually knows about them.
# -----------------------------------------------------------------------
<IfModule mod_mime.c>
AddType application/javascript js
AddType application/vnd.ms-fontobject eot
AddType application/x-font-ttf ttf ttc
AddType font/opentype otf
AddType application/x-font-woff woff
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
</Ifmodule>
# -----------------------------------------------------------------------
# Compressing output.
# -----------------------------------------------------------------------
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml application/atom+xml
AddOutputFilterByType DEFLATE image/x-icon image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype
</Ifmodule>
# -----------------------------------------------------------------------
# Turning off ETags
# -----------------------------------------------------------------------
Header unset Pragma
FileETag None
Header unset ETag
# Always set these headers.
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header always set Access-Control-Max-Age "1000"
Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"
# -----------------------------------------------------------------------
# Fixing headers expire time
# -----------------------------------------------------------------------
<IfModule mod_expires.c>
ExpiresActive on
# Your document html
ExpiresByType text/html "access plus 0 seconds"
# Media: images, video, audio
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/ogg "access plus 1 month"
ExpiresByType video/webm "access plus 1 month"
# CSS and JavaScript
#ExpiresByType application/javascript "access plus 1 year"
#ExpiresByType text/css "access plus 1 year"
</IfModule>
##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that disallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
##
## No directory listings
IndexIgnore *
## Can be commented out if causes errors, see notes above.
Options +FollowSymlinks
Options -Indexes
## Mod_rewrite in use.
RewriteEngine On
## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.
## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
RedirectMatch 302 /pl/component/tags/tag/([^/]+) /pl/zasoby-strony/tagi/$1
RedirectMatch 302 /pl/dla-mieszkanca/kalendarz/(.+)\-[^0-9]\/? /pl/dla-mieszkanca/kalendarz/$1
RedirectMatch 302 /pl/component/dpcalendar/event/(.+)\-[^0-9]\/? /pl/dla-mieszkanca/kalendarz/$1
#http://localhost/um-ostrowiec/pl/?option=com_dpcalendar&view=event&id=10&Itemid=180
## End - Custom redirects
##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##
# RewriteBase /
## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.
我真的很难过。我甚至不知道如何调试 - 所以我的问题是,到底是做什么的,我怎么能找到它?我真的很感激一些指导。 :/
EDIT1:
inwestor3.um.ostrowiec.pl:80 192.168.10.254 - - [25/Jan/2016:07:16:44 +0100] "GET /pl/sfera-spoleczna/wsparcie-co-gdzie-jak/206-rodziny-wielodzietne-karta-duzej-rodziny-ostrowiecka-rodzina-3 HTTP/1.1" 301 822 "http://inwestor3.um.ostrowiec.pl/pl/sfera-spoleczna/wsparcie-co-gdzie-jak/206-rodziny-wielodzietne-karta-duzej-rodziny-ostrowiecka-rodzina-3" "Mozilla/5.0 (Windows NT 5.1; rv:43.0) Gecko/20100101 Firefox/43.0"
inwestor3.um.ostrowiec.pl:80 192.168.10.254 - - [25/Jan/2016:07:40:22 +0100] "GET /pl/sfera-spoleczna/program-ostrowiecka-rodzina-3/241-zasady-otrzymania-karty-rodzina-3 HTTP/1.1" 301 822 "http://inwestor3.um.ostrowiec.pl/pl/sfera-spoleczna/program-ostrowiecka-rodzina-3/241-zasady-otrzymania-karty-rodzina-3" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36"
inwestor3.um.ostrowiec.pl:80 192.168.10.254 - - [25/Jan/2016:07:41:37 +0100] "GET /pl/sfera-spoleczna/wsparcie-co-gdzie-jak/210-pomoc-dla-uczniow-stypendia-szkolne HTTP/1.1" 301 822 "http://inwestor3.um.ostrowiec.pl/pl/sfera-spoleczna/wsparcie-co-gdzie-jak/210-pomoc-dla-uczniow-stypendia-szkolne" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36"
inwestor3.um.ostrowiec.pl:80 192.168.10.254 - - [25/Jan/2016:10:05:17 +0100] "GET /pl/samorzad/rada-miasta/387-radni HTTP/1.1" 301 822 "http://inwestor3.um.ostrowiec.pl/pl/samorzad/rada-miasta/387-radni" "Mozilla/5.0 (Windows NT 5.1; rv:43.0) Gecko/20100101 Firefox/43.0"
inwestor3.um.ostrowiec.pl:80 192.168.10.254 - - [25/Jan/2016:11:03:47 +0100] "GET /pl/sfera-spoleczna/wsparcie-co-gdzie-jak/209-fundusz-alimentacyjny HTTP/1.1" 301 822 "http://inwestor3.um.ostrowiec.pl/pl/sfera-spoleczna/wsparcie-co-gdzie-jak/209-fundusz-alimentacyjny" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36"
inwestor3.um.ostrowiec.pl:80 192.168.10.254 - - [25/Jan/2016:11:49:46 +0100] "GET /phpmyadmin HTTP/1.1" 301 584 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36"
inwestor3.um.ostrowiec.pl:80 192.168.10.254 - - [25/Jan/2016:14:26:45 +0100] "GET /pl/nieruchomosci/informator/379-oznacz-swoja-nieruchomosc-numer-i-nazwa-ulicy-nafroncie-budynku HTTP/1.1" 301 822 "http://inwestor3.um.ostrowiec.pl/pl/nieruchomosci/informator/379-oznacz-swoja-nieruchomosc-numer-i-nazwa-ulicy-nafroncie-budynku" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0"
inwestor3.um.ostrowiec.pl:80 192.168.10.254 - - [25/Jan/2016:15:22:22 +0100] "GET /pl/samorzad/urzad-miasta/wydzialy-urzedu-miasta/wydzial-spraw-obywatelskich/454-referat-dzialalnosci-gospodarczej HTTP/1.1" 301 822 "http://inwestor3.um.ostrowiec.pl/pl/samorzad/urzad-miasta/wydzialy-urzedu-miasta/wydzial-spraw-obywatelskich/454-referat-dzialalnosci-gospodarczej" "Mozilla/5.0 (Windows NT 5.1; rv:43.0) Gecko/20100101 Firefox/43.0"
inwestor3.um.ostrowiec.pl:80 192.168.10.254 - - [26/Jan/2016:07:47:33 +0100] "GET /pl/samorzad/rada-miasta/387-radni HTTP/1.1" 301 822 "http://inwestor3.um.ostrowiec.pl/pl/samorzad/rada-miasta/387-radni" "Mozilla/5.0 (Windows NT 5.1; rv:43.0) Gecko/20100101 Firefox/43.0"
inwestor3.um.ostrowiec.pl:80 192.168.10.254 - - [26/Jan/2016:08:11:24 +0100] "GET /pl/sfera-spoleczna/wsparcie-co-gdzie-jak/209-fundusz-alimentacyjny HTTP/1.1" 301 822 "http://inwestor3.um.ostrowiec.pl/pl/sfera-spoleczna/wsparcie-co-gdzie-jak/209-fundusz-alimentacyjny" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36"
inwestor3.um.ostrowiec.pl:80 192.168.10.254 - - [26/Jan/2016:09:24:49 +0100] "GET /pl/sfera-spoleczna/wsparcie-co-gdzie-jak/219-szkolenia-dla-doroslych HTTP/1.1" 301 822 "http://inwestor3.um.ostrowiec.pl/pl/sfera-spoleczna/wsparcie-co-gdzie-jak/219-szkolenia-dla-doroslych" "Mozilla/5.0 (Windows NT 5.1; rv:43.0) Gecko/20100101 Firefox/43.0"
inwestor3.um.ostrowiec.pl:80 10.1.1.72 - - [26/Jan/2016:09:49:34 +0100] "GET /pl/nieruchomosci/informator/379-oznacz-swoja-nieruchomosc-numer-i-nazwa-ulicy-nafroncie-budynku HTTP/1.1" 301 822 "http://inwestor3.um.ostrowiec.pl/pl/nieruchomosci/informator/379-oznacz-swoja-nieruchomosc-numer-i-nazwa-ulicy-nafroncie-budynku" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0"
inwestor3.um.ostrowiec.pl:80 192.168.10.254 - - [26/Jan/2016:09:53:05 +0100] "GET /administrator/index.php?option=com_docman HTTP/1.1" 301 1010 "http://inwestor3.um.ostrowiec.pl/administrator/index.php?option=com_content&view=articles" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36"
inwestor3.um.ostrowiec.pl:80 192.168.10.254 - - [26/Jan/2016:13:10:35 +0100] "GET /phpmyadmin HTTP/1.1" 301 584 "-" "Mozilla/5.0 (Windows NT 5.1; rv:43.0) Gecko/20100101 Firefox/43.0"
这可能与我的其他奇怪问题有关吗? Joomla random lack of permission to access