Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

April 21st - Mobile-Friendly Sites To Rank Better In Mobile Search on Google
 
Reply
   X-Cart forums > General > General talk
 
Thread Tools
  #11  
Old 03-12-2015, 12:44 AM
  Ksenia's Avatar 
Ksenia Ksenia is offline
 

X-Cart team
  
Join Date: Apr 2013
Posts: 735
 

Default Re: April 21st - Mobile-Friendly Sites To Rank Better In Mobile Search on Google

FYI: I found an official announcement about the subj in Google's blog:
http://googlewebmastercentral.blogspot.ru/2015/02/finding-more-mobile-friendly-search.html
__________________
X-Cart team
Reply With Quote

The following 4 users thank Ksenia for this useful post:
bigredseo (03-12-2015), chamberinternet (03-12-2015), elmirage001 (03-12-2015), totaltec (03-12-2015)
  #12  
Old 03-13-2015, 05:01 PM
  PhilJ's Avatar 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Location: UK
Posts: 3,587
 

Default Re: April 21st - Mobile-Friendly Sites To Rank Better In Mobile Search on Google

This ought to be a sticky thread... (thanks Paul!)

We've moved to HTTPS without much fuss, in fact Google picked up on the homepage almost immediately.

To redirect to HTTPS, add to .htaccess (before any URL re-writing rules)

Code:
RewriteCond %{SERVER_PORT} !^443 RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

For the XML sitemap generator module, edit modules/XML_Sitemap/func.php and replace all 5 instances of $http_location with $https_location

If you use a CDN, there's an alternative - https://www.keycdn.com - which doesn't charge extra for HTTPS.

Useful Firefox addon here.
Reply With Quote

The following 3 users thank PhilJ for this useful post:
ambal (03-14-2015), elmirage001 (03-13-2015), ITVV (03-14-2015)
  #13  
Old 03-14-2015, 07:03 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 13,541
 

Default Re: April 21st - Mobile-Friendly Sites To Rank Better In Mobile Search on Google

Quote:
Originally Posted by PhilJ
For the XML sitemap generator module, edit modules/XML_Sitemap/func.php and replace all 5 instances of $http_location with $https_location


Alternatively instead in init.php find

$http_location = 'http://' ....
$https_location = 'https://' ......

and below add

$http_location = $https_location;

Or change the 'http://' above to 'https://'
Or take both out leaving the '//' only....
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following 5 users thank cflsystems for this useful post:
elmirage001 (03-14-2015), georgewf (02-10-2018), ITVV (03-14-2015), PhilJ (03-16-2015), totaltec (03-16-2015)
  #14  
Old 03-14-2015, 09:15 AM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,102
 

Default Re: April 21st - Mobile-Friendly Sites To Rank Better In Mobile Search on Google

> This ought to be a sticky thread...

Done!
__________________
Sincerely yours,
Alex Mulin
VP of business development for X-Cart
X-Payments project manager
Reply With Quote

The following 2 users thank ambal for this useful post:
elmirage001 (03-14-2015), PhilJ (03-16-2015)
  #15  
Old 03-15-2015, 09:07 PM
  Vacman's Avatar 
Vacman Vacman is offline
 

X-Adept
  
Join Date: Sep 2005
Location: Torrance, CA
Posts: 792
 

Default Re: April 21st - Mobile-Friendly Sites To Rank Better In Mobile Search on Google

Seemed to for fine for me.... however...

I have two sub domains that sit in my public_html folder and are unrelated to my XCart system.

Is there a way to exclude the forced https for those domains?
__________________
Carl Tice

X-Cart 4.6.6
X-Payments 3.0
ReBOOT 3.4.1

PHP 5.6.30
MySQL 5.6.35
Linux 2.6.32-042stab120.18
ionCube PHP Loader v4.7.3
Perl 5.10.1
Reply With Quote
  #16  
Old 03-16-2015, 03:37 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: April 21st - Mobile-Friendly Sites To Rank Better In Mobile Search on Google

Quote:
Originally Posted by Vacman
Is there a way to exclude the forced https for those domains?
I don't see how they would be included. What method of forced https are you using? Is it actually affecting the subdomains?
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #17  
Old 03-16-2015, 05:06 AM
  Vacman's Avatar 
Vacman Vacman is offline
 

X-Adept
  
Join Date: Sep 2005
Location: Torrance, CA
Posts: 792
 

Default Re: April 21st - Mobile-Friendly Sites To Rank Better In Mobile Search on Google

Using the suggested method in Post #12.
__________________
Carl Tice

X-Cart 4.6.6
X-Payments 3.0
ReBOOT 3.4.1

PHP 5.6.30
MySQL 5.6.35
Linux 2.6.32-042stab120.18
ionCube PHP Loader v4.7.3
Perl 5.10.1
Reply With Quote
  #18  
Old 03-16-2015, 11:17 AM
  bigredseo's Avatar 
bigredseo bigredseo is offline
 

X-Man
  
Join Date: Oct 2002
Location: Omaha, NE, USA
Posts: 2,367
 

Default Re: April 21st - Mobile-Friendly Sites To Rank Better In Mobile Search on Google

Taking the example from post #12, you can add the following;

Code:
RewriteCond %{HTTP_HOST} !^subdomain\.domain\.com RewriteCond %{SERVER_PORT} !^443 RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

Basically, this is saying "rewrite on the conditition" that the url "is not" subdomain.domain.com

The "!^subdomain" is the "is not subdomain" part.

Give that a shot and you should be set.
__________________
Conor Treacy - Big Red SEO - @bigredseo
Search Engine Optimization & Internet Marketing - We Bring Your Website Out Of Hiding!
If you can't be found on Google, Bing or Yahoo, you pretty much don't exist on the Internet.
Omaha SEO Office with National & Local SEO Services
Hourly Consulting - great for SEO Disaster Recovery, Audits and DIY Guidance
Reply With Quote

The following 2 users thank bigredseo for this useful post:
ITVV (03-16-2015), Vacman (03-30-2015)
  #19  
Old 03-16-2015, 12:14 PM
  Vacman's Avatar 
Vacman Vacman is offline
 

X-Adept
  
Join Date: Sep 2005
Location: Torrance, CA
Posts: 792
 

Default Re: April 21st - Mobile-Friendly Sites To Rank Better In Mobile Search on Google

Do I need to add those sub domain names to this? I ask, because as is, the code didn't change anything.

I should mention that if I remove post#12, the sub-domain in question works just fine.
__________________
Carl Tice

X-Cart 4.6.6
X-Payments 3.0
ReBOOT 3.4.1

PHP 5.6.30
MySQL 5.6.35
Linux 2.6.32-042stab120.18
ionCube PHP Loader v4.7.3
Perl 5.10.1
Reply With Quote
  #20  
Old 03-16-2015, 03:53 PM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,579
 

Default Re: April 21st - Mobile-Friendly Sites To Rank Better In Mobile Search on Google

Quote:
Originally Posted by Vacman
Do I need to add those sub domain names to this? I ask, because as is, the code didn't change anything.

I should mention that if I remove post#12, the domain works just fine.
Hi Carl, Just an FYI, Jon is putting together some information for CDSEO Pro users which will be posted or linked to most likely withing the next few days.

Paul
__________________
X-Cart GoldPlus v4.7.11 | PHP 7.2.22
  • XCARTMODS.CO.UK | reBOOT Template |
  • Smack Digital | CDSEO Pro 2.0 + Custom Replacements | Category SEO Map |
  • Total Server Solutions Hosting | Linux | PHP v7.2 | MySQL v5.6.40 |
Reply With Quote
Reply
   X-Cart forums > General > General talk


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:25 AM.

   

 
X-Cart forums © 2001-2018