php - Every page is redirected to 404 page in opencart except Product page -


hello guys m facing problem please help. m using opencart(version 1.5.5.1). last day find every poge redirected 404 error page except product page. couldn't find reason behind please suggestion.

i have following code in .htaccess file.

        # prevent direct access files <filesmatch "\.(tpl|ini|log)">  order deny,allow  deny </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 root / ### rewritecond %{the_request} ^.*\/index\.php\ http/ rewriterule ^(.*)index\.php$ /$1 [r=301,l]  ### re-direct parked domain 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 , set default 0 expiresactive on expiresdefault a0  # set caching on media files 5 weeks <filesmatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$"> expiresdefault a3024000 header append cache-control "public" </filesmatch>  # set caching on media files 5 weeks <filesmatch "\.(gif|jpg|jpeg|png|swf)$"> expiresdefault a3024000 header append cache-control "public" </filesmatch>  # set 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 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> 

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

it may not htaccess problem unless site working fine without it.

what url of product working? might shed light on problem.

paul.


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -