Show Posts

Topics - 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 / 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 / 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.

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 / 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