Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Bitnami AbanteCart cart .htaccess for SEO  (Read 9322 times)

rvalani

  • Guest
Bitnami AbanteCart cart .htaccess for SEO
« on: July 27, 2016, 10:42:02 AM »
Hi people,
I am new to AbanteCart cart and learning to setup a store.
I have watched the video of SEO url by AbanteCart cart and tried it but It didn't work as I am using bitnami AbanteCart cart
I also tried https://wiki.bitnami.com/Components/Apache/htaccess_configuration this link but could not figure out how to make it work
Note: I work locally so I have few products in my local machine and hosting it locally (eg:localhost:8088/abantecart/)

I am looking for a set of steps if someone can help me I would really appreciate that
Thanks a lot

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4367
  • Karma: +302/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Bitnami AbanteCart cart .htaccess for SEO
« Reply #1 on: July 27, 2016, 11:18:01 AM »
Hello and welcome to AbanteCart.

Here is the link to SEO configuration manual
http://docs.abantecart.com/pages/tips/enable_seo.html

Make sure you handle .htaccess files as instructed.

It is pretty easy, rename the file to be  .htaccess and update your RewriteBase from / to /abantecart/ for your case.
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 6144
  • Karma: +284/-2
    • View Profile
Re: Bitnami AbanteCart cart .htaccess for SEO
« Reply #2 on: July 28, 2016, 01:16:51 AM »
Hello.

Your question is related to Bitnami local server configuration. Nothing to do here with AbanteCart.
Anyway I think you need to find httpd.conf or htaccess.conf file in your Bitnami
and add this code
Code: [Select]
<Directory /pathtoabantecartbitnami/abantecart/htdocs/>
 
  <IfModule rewrite_module>
RewriteEngine on
# Rewrite section for retina high-res images with @2x in the end of filename base on cookie HTTP_IS_RETINA
# To emulate Retina mode on your NON-Retina display, add HTTP_IS_RETINA cookie in your browser
RewriteCond %{HTTP_COOKIE} HTTP_IS_RETINA [NC]
RewriteCond %{REQUEST_FILENAME} !@2x
RewriteRule ^(.*)\.(gif|jpg|png)$ $1@2x.$2
# if @2x isn't available fulfill the original request
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)@2x\.(gif|jpg|png)$ $1.$2

# SEO URL Settings
RewriteBase /abantecart/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]
  </IfModule>
</Directory>

Please note you need to restart Bitnami php to apply changes   :P

rvalani

  • Guest
Re: Bitnami AbanteCart cart .htaccess for SEO
« Reply #3 on: July 29, 2016, 10:52:41 AM »
@Basara I tried your code and now I am not able to open it it syays This site can’t be reached

localhost refused to connect.

I did undo my changes restarted my system and it still shows the error  pls help me I Cant open it now

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 6144
  • Karma: +284/-2
    • View Profile
Re: Bitnami AbanteCart cart .htaccess for SEO
« Reply #4 on: August 01, 2016, 02:22:04 AM »
Dear, rvalani
You issue is not related to AbanteCart please refer Bitnami documentation and support

 

Powered by SMFPacks Social Login Mod