2012-04-25 2 views
0

나는 Joomla! SEF url에 대해 실행되는 1.5.23 웹 사이트 Artio. 전체 구성 :HTTP 303 : http : // www 대신 http : // www가 루프/303

  • JoomSEF3 3.9.5
  • Virtuemart JoomSEF 확장 2.1.1
  • 줌라! 1.5.23
  • Virtuemart 1.1.9
  • Joomfish 2.0.4

내가 www가 URL을 만 사용할 수 Artio (SEF 구성 요소)를 말했습니다. 어쨌든 www가없는 http : // url을 방문하면 브라우저가 멈 춥니 다. 파이어 폭스 (11)는 여전히 나에게 www가 아닌 ​​URL로가는 같은 문제를 가져 나

The page isn't redirecting properly 
Firefox has detected that the server is redirecting the request for this address in a way that will never complete. 

는 www가 www가 아닌 ​​물건을 처리 할 수 ​​없습니다 Artio를 말하는하고 URL을 퍼지 말한다. 방화범이 나는 것으로 내게 상태 303을 보여줍니다 - 다른 경우를 봅니다 - 두 경우 모두 (Artio 설정 모두). .htaccess 문제 또는 DNS 문제라고 생각하게합니다. .htaccess는 다음과 같습니다.

## 
# @version $Id: htaccess.txt 9975 2008-01-30 17:02:11Z ircmaxell $ 
# @package Joomla 
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved. 
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL 
# Joomla! is Free Software 
## 


##################################################### 
# 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. 
# 
##################################################### 

## Can be commented out if causes errors, see notes above. 
# Options +FollowSymLinks 

# 
# mod_rewrite in use 

RewriteEngine On 

# non-www to www 

#RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] 
#RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L] 


# 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 
# 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_URI} !^/index.php 
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC] 
RewriteRule (.*) index.php 
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] 
# 
########## End - Joomla! core SEF Section 


########## 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 set a mosConfig value through the URL 
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR] 
# Block out any script trying to base64_encode crap to send via URL 
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR] 
# Block out any script that includes a <script> tag in URL 
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%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}) 
# Send all blocked request to homepage with 403 Forbidden error! 
RewriteRule ^(.*)$ index.php [F,L] 
# 
########## End - Rewrite rules to block out some common exploits 


######## Redirect to keep old site running 
# 
DirectoryIndex index.php index.html 
# 
######## End Redirect preservation 

######## Fix memory issue 
php_value memory_limit 40M 
php_value max_execution_time 200 
php_value max_input_time 200 
php_value upload_max_filesize 20M 

전 303 가지가 없었습니다. www가없는 URL을 다시 작동 시키려면 어떻게해야합니까? 내가

RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] 
RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L] 

내가 301을 가지고 주석 처리와 이번 주에 몇 가지 테스트를하고 www가 URL

업데이트 2 을 사용하여 사이트에 도달 할 수

업데이트 1

Artio와 함께 SEF 구성 요소의 제작자가되었습니다. 여기 아무도 단서가없는 것 같아서 이것이 가장 좋은 방법 인 것 같습니다.

답변

0

Artio에있는 사람들은 저의 문제점을 발견했습니다 : "...이 문제는 System - Jfrouter 플러그인에서"302 리디렉션 사용 "옵션이 활성화되어 있기 때문에 발생했습니다. www가 아닌 ​​도메인은 www로 올바르게 리디렉션 된 것 같습니다. if 이 옵션은 사용할 수 없습니다. " 모두 좋다.

관련 문제