Author Topic: https redirect  (Read 5404 times)

Offline user88

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +16/-0
    • View Profile
    • Visit my website
https redirect
« on: November 01, 2018, 06:05:30 PM »
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?


Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5774
  • Karma: +274/-2
    • View Profile
Re: https redirect
« Reply #1 on: November 02, 2018, 02:15:44 AM »
I have an htaccess file in mydomain.com that includes code to force https and www use.

Modify .htaccess rules in /store subfolder

Offline user88

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +16/-0
    • View Profile
    • Visit my website
Re: https redirect
« Reply #2 on: November 02, 2018, 04:23:41 PM »
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.

Offline Sam_78

  • Sr. Member
  • ****
  • Posts: 270
  • Karma: +42/-1
    • View Profile
Re: https redirect
« Reply #3 on: November 02, 2018, 05:42:04 PM »
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
« Last Edit: November 02, 2018, 05:44:13 PM by Sam_78 »

Offline user88

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +16/-0
    • View Profile
    • Visit my website
Re: https redirect
« Reply #4 on: November 03, 2018, 04:52:25 PM »
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/

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5774
  • Karma: +274/-2
    • View Profile
Re: https redirect
« Reply #5 on: November 05, 2018, 12:34:46 AM »
I see SEO urls working in 2nd and even 3rd level categories https://www.bluestarway.com/increase4all/human-endeavor-books

Offline user88

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +16/-0
    • View Profile
    • Visit my website
Re: https redirect
« Reply #6 on: November 05, 2018, 04:13:01 PM »
Thanks for checking.

I guess, I should just leave it at that rather than trying to figure out why SEO urls are not working for all category levels.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5774
  • Karma: +274/-2
    • View Profile
Re: https redirect
« Reply #7 on: November 06, 2018, 12:41:32 AM »
Make sure all categories have SEO keyword

Offline user88

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +16/-0
    • View Profile
    • Visit my website
Re: https redirect
« Reply #8 on: November 07, 2018, 05:04:31 PM »
Thanks for the suggestions. All categories have keywords.

 

Powered by SMFPacks Social Login Mod