eCommerce construction > Installation and Configuration

https redirect

(1/2) > >>

user88:
Hi there,

I have my store setup in a subfolder, like mydomain.com/store

I have an htaccess file in mydomain.com that includes code to force https and www use.

My problem is that the AbanteCart htaccess file stored in my /store subfolder overrides this because I have SEO on. So if a person types url mydomain.com/store, browser takes person to mydomain.com/store (no www and no https). When this happens, some of the AbanteCart icons don't display.

If person types mydomain.com/anyotherfolder it will direct to https://www.mydomain.com/anyotherforlder.

I have tried a few things to correct this but no success. I either break the SEO ulrs or worse.

I know that when I delete the htaccess file under /store, then the url will redirect with the https and www

Anyone know what code to add so that I can have https, www, and SEO urls?

Basara:

--- Quote from: user88 on November 01, 2018, 06:05:30 PM ---I have an htaccess file in mydomain.com that includes code to force https and www use.

--- End quote ---

Modify .htaccess rules in /store subfolder

user88:
I have tried that, but I don't know how to make the https and www rule work with the SEO rule.

When I add https rule I either end up with a non working link or non working SEO rule.

Don't know enough to fix this.

Sam_78:
you need to edit your .htaccess in /store folder
Change it to
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/store/$1 [R,L]

This should work and all your abanteCart icons would appear
Note: make sure that in your abanteCart setting you have set-up store URL as https://www.yourdomain.com/store, not www.yourdomain.com/store or https://yourdomain.com/store

user88:
Thanks Sam.

I did some testing on my store url . I get the forced https and www.

SEO function is not perfect, not sure why. SEO urls are not functioning only for 2nd level categories. Everything else (i.e. first level categories and products urls) displays as SEO url.

Seems like that was my problem before - but because I never tested beyond 2nd level category I didn't notice that it is some kind of hiccup that only applies to 2nd level category. All else functions with SEO urls.

Thanks again.

Would be nice if someone would go to my site to test the SEO functionality and see what they observe.

The link is www.bluestarway.com/increase4all/

Navigation

[0] Message Index

[#] Next page

Go to full version
Powered by SMFPacks Social Login Mod