AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: rvalani on July 27, 2016, 10:42:02 AM

Title: Bitnami AbanteCart cart .htaccess for SEO
Post by: rvalani 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
Title: Re: Bitnami AbanteCart cart .htaccess for SEO
Post by: abantecart 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.
Title: Re: Bitnami AbanteCart cart .htaccess for SEO
Post by: Basara 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
Title: Re: Bitnami AbanteCart cart .htaccess for SEO
Post by: rvalani 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
Title: Re: Bitnami AbanteCart cart .htaccess for SEO
Post by: Basara on August 01, 2016, 02:22:04 AM
Dear, rvalani
You issue is not related to AbanteCart please refer Bitnami documentation and support