Bitnami AbanteCart cart .htaccess for SEO

Started by rvalani, July 27, 2016, 10:42:02 AM

Previous topic - Next topic

rvalani

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

abantecart

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

Basara

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

<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

@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

Basara

Dear, rvalani
You issue is not related to AbanteCart please refer Bitnami documentation and support

Forum Rules Code of conduct
AbanteCart.com 2010 -