2013-05-10 4 views
0

을 제외한 모든 페이지가 오픈카에서 404 페이지로 리디렉션됩니다. OpenCart (버전 1.5.5.1)를 사용하고 있습니다. 하지만 마지막 날부터는 모든 poge가 404 오류 페이지 예외 제품 페이지로 리디렉션됩니다. 이유를 찾을 수 없습니다. 몇 가지 제안을하십시오.제품 페이지

.htaccess 파일에 다음 코드가 있습니다.

 # Prevent Direct Access to files 
<FilesMatch "\.(tpl|ini|log)"> 
Order deny,allow 
Deny from all 
</FilesMatch> 
ErrorDocument 404 /404.php 
# SEO URL Settings 
RewriteEngine On 

RewriteCond %{REQUEST_URI} !\.[a-zA-Z0-9]{3,4} 
RewriteCond %{REQUEST_URI} !/$ 
RewriteRule ^(.*)$ $1.php 


RewriteBase/
#RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L] 
#RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L] 

#Options +FollowSymlinks -MultiViews 
#RewriteRule ^(.+)(\s|%20)(.+)$ /$1-$3 [R=301,QSA,L,NE] 


### re-direct index.php to root/### 
RewriteCond %{THE_REQUEST} ^.*\/index\.php\ HTTP/ 
RewriteRule ^(.*)index\.php$ /$1 [R=301,L] 

### re-direct any parked domain to www of main domain 
RewriteCond %{http_host} !^www.mysite.com$ [nc] 
RewriteRule ^(.*)$ http://www.mysite.com/$1 [r=301,nc,L] 

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css) 
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA] 

# Turn on Expires and set default to 0 
ExpiresActive On 
ExpiresDefault A0 

# Set up caching on media files for 5 weeks 
<FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$"> 
ExpiresDefault A3024000 
Header append Cache-Control "public" 
</FilesMatch> 

# Set up caching on media files for 5 weeks 
<FilesMatch "\.(gif|jpg|jpeg|png|swf)$"> 
ExpiresDefault A3024000 
Header append Cache-Control "public" 
</FilesMatch> 

# Set up 5 week caching on commonly updated files 
<FilesMatch "\.(xml|txt|html|js|css)$"> 
ExpiresDefault A3024000 
Header append Cache-Control "proxy-revalidate" 
</FilesMatch> 

# Force no caching for dynamic files 
<FilesMatch "\.(php|cgi|pl|htm)$"> 
ExpiresActive Off 
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform" 
Header set Pragma "no-cache" 
</FilesMatch> 
<IfModule mod_headers.c> 
<FilesMatch "\.(js|css|xml|gz)$"> 
    Header append Vary: Accept-Encoding 
    </FilesMatch> 
</IfModule> 

=========================================== ===================

+0

문제를 재현하기 위해 스토어의 URL을 제공하면 어떨까요? – shadyyx

+0

파일을 어떻게 변경 했습니까? – TheBlackBenzKid

+0

내 문제가 해결되었습니다. Thnx. –

답변

0

사이트가 없이는 제대로 작동하지 않으면 htaccess 문제가 아닐 수도 있습니다.

작동하는 제품의 URL은 무엇입니까? 문제에 대해 밝히는 데 도움이 될 수 있습니다.

폴.

관련 문제