.htaccess - OpenCart 3.X SEO URLs are all going to the homepage -
i'm running opencart 3.0.2.0 , i've turned on seo urls. they're displaying home page. htaccess file came default (yes, changed htaccess.txt .htaccess).
i can't life of me figure out why they're not working. has else had problem? i've posted in open cart forums, no 1 ever seems reply there.. awesome.
here's htaccess file:
# 1.to use url alias need running apache mod_rewrite enabled. # 2. in opencart directory rename htaccess.txt .htaccess. # support issues please visit: http://www.opencart.com options +followsymlinks # prevent directoy listing options -indexes # prevent direct access files <filesmatch "(?i)((\.tpl|.twig|\.ini|\.log|(?<!robots)\.txt))"> # require denied ## apache 2.2 , older, replace "require denied" these 2 lines : order deny,allow deny </filesmatch> # seo url settings rewriteengine on # if opencart installation not run on main web folder make sure folder run in ie. / becomes /shop/ rewritebase / rewriterule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [l] rewriterule ^googlebase.xml$ index.php?route=extension/feed/google_base [l] rewriterule ^system/storage/(.*) index.php?route=error/not_found [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] ### additional settings may need enabled servers ### uncomment commands removing # sign in front of it. ### if "internal server error 500" after enabling of following settings, restore # means host doesn't allow that. # 1. if cart allows add 1 item @ time, possible register_globals on. may work disable it: # php_flag register_globals off # 2. if cart has magic quotes enabled, may work disable it: # php_flag magic_quotes_gpc off # 3. set max upload file size. hosts limit , not allow overridden can try # php_value upload_max_filesize 999m # 4. set max post size. uncomment line if have lot of product options or getting errors forms not saving fields # php_value post_max_size 999m # 5. set max time script can take. uncomment line if have lot of product options or getting errors forms not saving fields # php_value max_execution_time 200 # 6. set max time input recieved. uncomment line if have lot of product options or getting errors forms not saving fields # php_value max_input_time 200 # 7. disable open_basedir limitations # php_admin_value open_basedir none
Comments
Post a Comment