2013-05-10 130 views
0

你好家伙我面临一个问题请帮助。我使用OpenCart(版本1.5.5.1)。但从最后一天,我发现我的每一个poge重定向到404错误页面除产品页面。 我无法找到背后的原因,请做一些建议。每页都被重定向到opencart的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

如何向我们提供您的商店的网址,以便我们可以尝试重现问题? – shadyyx 2013-05-10 08:41:41

+0

你对档案做了什么改变? – TheBlackBenzKid 2013-05-10 15:11:42

+0

我的问题已解决。日Thnx。 – 2013-05-13 13:31:34

回答

0

它可能不是一个htaccess的问题,除非你的网站没有它的工作正常。

什么是正在工作的产品的网址?可能有助于澄清问题。

Paul。