Opencart .htaccess config issue -


i know there similar issues unable resolve problem i've been having.

i using opencart 1.5.5.1. updated website links different have 301 redirected large number of links. problem is, aren't working.

this .htaccess file looks like:

# 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 "\.(tpl|ini|log)">  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=feed/google_sitemap [l] rewriterule ^googlebase.xml$ index.php?route=feed/google_base [l] rewriterule ^download/(.*) /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  rewriterule ^downloads.asp$ http://www.example.com/downloads [r=301,l]  #301 redirect redirect 301 /onlinestore http://mywebsite.com.au redirect 301 /gallery.html http://mywebsite.com.au redirect 301 /images/getaflatstomachoct2012.pdf http://mywebsite.com.au redirect 301 /onlinestore/all-products/allvia-melatonin-3-cream-57g http://mywebsite.com.au redirect 301 /aboutus.html http://mywebsite.com.au/about_us redirect 301 /meetus.html http://mywebsite.com.au/about_us redirect 301 /mission.html http://mywebsite.com.au/about_us redirect 301 /articleselectprotein.html http://mywebsite.com.au/blogs redirect 301 /enewsletters.html http://mywebsite.com.au/blogs redirect 301 /enewsletters/april2013/april2013.html http://mywebsite.com.au/blogs redirect 301 /enewsletters/june2010/enewsletterjune2010.html http://mywebsite.com.au/blogs redirect 301 /enewsletters/june2013/june2013.html http://mywebsite.com.au/blogs redirect 301 /enewsletters/october2012/october2012.html http://mywebsite.com.au/blogs redirect 301 /proteintablelarge.html http://mywebsite.com.au/blogs redirect 301 /enewsletters/november2011/november2011.html http://mywebsite.com.au/blogs/christmas-survival-guide.html redirect 301 /enewsletters/march2011/march2011.html http://mywebsite.com.au/blogs/digestion-boost-energy-recover-better-be-happier.html redirect 301 /enewsletters/february2011/february2011.html http://mywebsite.com.au/blogs/fat-loss-during-your-lunch-break.html redirect 301 /enewsletters/june2012/june2012.html http://mywebsite.com.au/blogs/living-healthier-by-alkalising-your-body-what-it-means-and-how-to-achieve-it..html redirect 301 /enewsletters/august2010/enewsletteraugust2010.html http://mywebsite.com.au/blogs/marathon-triathlon-and-endurance-supplementation-guide.html redirect 301 /articletop10fattips.html http://mywebsite.com.au/blogs/psn-s-top-10-fat-loss-tips.html redirect 301 /enewsletters/september2010/enewsletterseptember2010.html http://mywebsite.com.au/blogs/psn-s-top-10-fat-loss-tips.html redirect 301 /enewsletters/march2012/march2012.html http://mywebsite.com.au/blogs/q-a-we-answer-frequently-asked-questions.html redirect 301 /enewsletters/may2012/may2012.html http://mywebsite.com.au/blogs/supplement-packs-for-your-goal.html redirect 301 /enewsletters/november2010/enewsletternovember2010.html http://mywebsite.com.au/blogs/supplement-packs-for-your-goal.html redirect 301 /enewsletters/july2011/july2011.html http://mywebsite.com.au/blogs/zma-better-sleep-sex-recovery-and-more.html redirect 301 /contactus.html http://mywebsite.com.au/contact redirect 301 /maplarge.pdf http://mywebsite.com.au/contact redirect 301 /benefits.html http://mywebsite.com.au/membership-terms-and-conditions.html redirect 301 /memberform.html http://mywebsite.com.au/membership-terms-and-conditions.html redirect 301 /terms.html http://mywebsite.com.au/membership-terms-and-conditions.html redirect 301 /onlinestore/accessories-1/all-accessories?page=1 http://mywebsite.com.au/accessories redirect 301 /onlinestore/accessories-1/all-accessories?page=2 http://mywebsite.com.au/accessories redirect 301 /onlinestore/accessories-1/all-accessories?page=3 http://mywebsite.com.au/accessories redirect 301 /onlinestore/accessories-1/all-accessories?page=4 http://mywebsite.com.au/accessories redirect 301 /onlinestore/accessories-1/all-accessories/advanced-fitness-manta-ray http://mywebsite.com.au/accessories 

the redirects continue. issue is:

-when go original address: http://www.mywebsite.com.au/onlinestore/accessories-1/all-accessories/advanced-fitness-manta-ray

-it should redirect here: http://mywebsite.com.au/accessories

-but goes here: route=onlinestore/accessories-1/all-accessories/advanced-fitness-manta-ray">http://mywebsite.com.au/accessories-1/all-accessories/advanced-fitness-manta-ray?route=onlinestore/accessories-1/all-accessories/advanced-fitness-manta-ray

so issue is, goes correct new site, adds ?route= followed original url.

i have tried support have had no success. if can support @ all, grateful.

regards, helen

you need place of redirect commands before rewriteengine on line, otherwise not executed


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -