Show Posts

Messages - RD

Pages: [1]
General Support / redirect 301 in .htaccess
« on: July 20, 2020, 06:40:33 AM »
Hi all

I have two product pages I want to redirect traffic from, and send to a new page and have read about using redirect 301 in .htaccess.    From what I can piece together, they suggest the following structure should work –

Redirect 301 /old-product1
Redirect 301 /old-product2

The problem is I’m not sure “where” to place these lines in my .htaccess.  Are other commands needed before the redirect?

At the moment they are directly after the “RewriteEngine on”.   This is nearly working – if I go to, the browser shows the URL for the new page like this   but displays “Product not Found”, however the new product does exist.

Here is the .htaccess file - it’s the standard one  installed with Abantecart (I’ve cut the top and bottom bits to shorten for this post).  I did manage to add a section to force https and www which has been working fine.  Many thanks in advance, Rich.

[. . .  top of standard Abantecart .htaccess file snipped . . . ]

Options +FollowSymlinks

# Prevent Directory listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "\.tpl">
Order deny,allow
Deny from all

RewriteEngine on

#### redirect old pages to new -  addedby me  ####
Redirect 301 /soap-step-soap-dish-wall-mounted
Redirect 301 /soap-step-soap-dish-counter-top

# 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 %{REQUEST_FILENAME} !@2x
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)\.(gif|jpg|jpeg|png)$ $1@2x.$2
# if @2x isn't available fulfill the original request
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)@2x\.(gif|jpg|jpeg|png)$ $1.$2

#### Force http://HTTPS://WWW and remove trailing / from files – added by me  ####
# RewriteEngine on
# Remove trailing slash from non-filepath urls
RewriteCond %{REQUEST_URI} /(.+)/$
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ [R=301,L]

# Include trailing slash on directory
RewriteCond %{REQUEST_URI} !(.+)/$
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+)$$1/ [R=301,L]

# Force HTTPS and WWW
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [OR,NC]
RewriteCond %{https} off 
RewriteRule ^(.*)$$1 [R=301,L]

#### end of stuff added by me

# SEO URL Settings

[ … rest of standard Abantecart .htaccess file snipped  . . . ]

Feedback on My Store / Re: Please feel free to look at my site . . .
« on: June 13, 2020, 05:54:14 PM »
Thanks, good point.  I don't ship internationally as it's too expensive from here.  Yes you're right though, should be some indication of that.

Feedback on My Store / Please feel free to look at my site . . .
« on: June 13, 2020, 02:22:16 AM »
Hi all,
Please feel free to have a look and make suggestions on my site at

I’ve tried to keep it simple as I only have a few products.  Using Abantecart 1.2.15 with the Ellie template and a few bits of CSS.

I still have work to do on it.   Currently I’m just manually adding FB posts and entering my own comments at the bottom of the home page to help with word count.  I might get a blog tool from the marketplace at some point. 
I’m using several different online checkers to help with SEO (they often contradict each other!) and slowly have that coming better.  Still more to do with SEO.  Also need to add a gallery of completed projects, upgrade to 1.2.16, and optimize images.

Many thanks, appreciate it


SEO / Re: question about disavowing backlinks
« on: June 12, 2020, 09:14:31 PM »
Hi, thanks for that. 

I disabled the test site in Cpanel - is that what you mean?  Yes, I changed the URL in store settings.  How do I set a URL rewrite -is that like a 301 redirect?



SEO / question about disavowing backlinks
« on: June 12, 2020, 06:20:15 PM »
Hi all
I have a question about disavowing backlinks.  When I started using Abantecart, I set it up on a “test” domain so I could get familiar with Abantecart.  Once happy with the site I moved it to my real domain as the “live” site.  Now I can see there are backlinks showing the “test” domain.  Should I look at disavowing the “test” domain (given it has low domain authority) so Google Search Console excludes the whole test domain when ranking the live site, or, is it better to leave as is?  Thanks, Rich.

I use NZ Post and just have 2 locations (rather than zones) set.  The downside with how I'm doing it is that the buyer is presented with those two options at checkout i.e. they choose rural or non-rural.  I've never had anyone choose the incorrect option as most people these days know whether their address is one or the other.  I can always email them if they get it wrong.  So you could maybe use 4 locations, South Island Rural SIR, South Island Urban SIU, and same for North Island NIR, NIU or whatever, and for each, the corresponding pricing structure like 1:5.00, 2:7.50  etc. 
Here's a working example for a product - say the product's real weight is 90g - I ignore the real weight and ask myself "how many can I send for $5, how many for $7.50" etc.  Say the answer is 4 items (maximum of 4 of the 90g products fit in a DLE size box) then I take the 1kg (1000g and divide by 4) and make the weight for each item in Catalog/Products 250g.  If someone orders 5, the weight flips over to the $7.50, and so on.  It's a work-around.  Might work for you, might not, but has been OK for me.  Cheers

Hi Tobynator,
I'm in NZ too, so know where you're coming from - we seem to have particularly complex shipping options here with urban & rural, different islands etc.  I had to use the weight-based shipping module, as mentioned by Basara.  Yours might be different and will depend on number and type of products but to give you an idea, I created two locations in System/Localization/Locations, one for rural, one for urban.   Then in Extension/Shipping turn on the "default_weight" module.  In there, under Additional Settings, you can specify the pricing for each of those locations based on the unit of weight you've got set for the cart (somewhere under System/Settings).  I set mine to Kgs, so under Additional Settings, I have 1:5.00,2:7.50  for urban  - this means 1kg is charged $5, 2kgs is $7.50.  For Rural I used 1:8.00,2:12.00.  Then you specify the weight of each product in Catalog/Products.  It might work out OK for your products but in my case I had to "make up" weights so that multiples of the product would still fit into the pricing structure for the cost bracket in Additional Settings (mentioned above).  If you have a lot of products, you might need to use Excel first to help get all the pricing & weight options sorted.  Cheers, Rich.

How-to questions / Re: Forms Manager - regular expressions?
« on: February 17, 2020, 06:48:01 PM »
Thanks Basara, I see what you mean about using a hidden field, but is there any way I can get it to automatically send the product name, SKU number, or URL address from the form, for the product they are viewing and commenting on? 
The same form is used by each product, so I was hoping there might be a way to have the form send that info when submitted - some kind of auto-magic code like "=product_name".  Thanks!

How-to questions / Forms Manager - regular expressions?
« on: February 14, 2020, 04:32:52 PM »
Hi all
I've created a simple product enquiry form, customers can complete if they want more info about a specific product.  It shows for each product (I've added it to the default product page) and they complete fields for their name, email address, product name and comment. 
Is there some clever way I can have the product name (or even the URL of the page they're on) submitted automatically when they submit the form please, so they don't have to type the name of the product and I can remove that field from the form?  I notice there's a "regular expression pattern" option for the field - what does that do - I can't see any info on that?

Appreciate any ideas,


General Support / Re: New install - can't add products to cart
« on: December 16, 2019, 02:05:49 PM »
Thank you, solved!

General Support / New install - can't add products to cart
« on: December 16, 2019, 04:43:03 AM »
Hi all, hopefully there is a simple setting I have missed.  I recently installed abantecart for my first look at it, on my test domain  then discovered I couldn't add products to the cart.  When I click the "Add to cart" button, I get to a "shopping Cart" screen which then says "Your shopping cart is empty" with a "continue" button.   Clicking the "Cart" button at the top of the screen does the same. 

Thinking I'd done something wrong during the install, I re-installed abantecart and the same thing happened.  I've used 3 devices, 6 different browsers, cleared every browser setting like cookies etc and still can't add anything to the cart.  Looks like a show-stopper at this stage - any ideas please?  Using abantecart 1.2.15



Pages: [1]

Powered by SMFPacks Social Login Mod