Post by philehutchinson27 » Wed Oct 28, 2020 10:52 pm

Hi,
I am having some issues with my site which is https://vintagemagpie.store

If you go to the url vintagemagpie.store on my android phone it seems to divert to www.vintagamagpie.store and gives me a not found.

I know my hosting places my site in /public_html

and currently if you visit the above url from a normal web browser (not android) the page loads correctly.

My .htaccess file is below.

I would like to also use friendly seo urls however this does not seem to work either, I tried updating the .htaccess file with what was in .htaccess.txt and found that it was better on PC but on mobile the best I could get was it to arrive at a page not found page?

I am out of my depth on htacess files so any help would really be appreciated.

Code: Select all

AddType x-httpd-php74 .php
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule ^(.*)$ https://vintagemagpie.store/$1 [R=301,L]


RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.vintagemagpie\.store[NC]
RewriteRule ^(.*)$ https://vintagemagpie.store/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^vintagemagpie.store [NC]
RewriteRule ^(.*)$ https://www.vintagemagpie.store/$1 [L,R=301,NC]
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/simple_google_sitemap [L]
Many thanks
Phil
Last edited by philehutchinson27 on Thu Oct 29, 2020 12:24 am, edited 1 time in total.

New member

Posts

Joined
Tue Aug 11, 2020 9:28 pm


Post by JNeuhoff » Wed Oct 28, 2020 11:46 pm

If I understand you correctly, you always want to do a re-direct from www.vintagemagpie.store to vintagemagpie.store. And always use the 'https://' protocol.

If so, make sure to use this in your config.php:

Code: Select all

// HTTP
define('HTTP_SERVER', 'https://vintagemagpie.store/');

// HTTPS
define('HTTPS_SERVER', 'https://vintagemagpie.store/');
And use this in your admin/config.php:

Code: Select all

// HTTP
define('HTTP_SERVER', 'https://vintagemagpie.store/admin/');
define('HTTP_CATALOG', 'https://vintagemagpie.store/');

// HTTPS
define('HTTPS_SERVER', 'https://vintagemagpie.store/admin/');
define('HTTPS_CATALOG', 'https://vintagemagpie.store/');

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by philehutchinson27 » Wed Oct 28, 2020 11:54 pm

JNeuhoff wrote:
Wed Oct 28, 2020 11:46 pm
If I understand you correctly, you always want to do a re-direct from www.vintagemagpie.store to vintagemagpie.store. And always use the 'https://' protocol.

If so, make sure to use this in your config.php:

Code: Select all

// HTTP
define('HTTP_SERVER', 'https://vintagemagpie.store/');

// HTTPS
define('HTTPS_SERVER', 'https://vintagemagpie.store/');
And use this in your admin/config.php:

Code: Select all

// HTTP
define('HTTP_SERVER', 'https://vintagemagpie.store/admin/');
define('HTTP_CATALOG', 'https://vintagemagpie.store/');

// HTTPS
define('HTTPS_SERVER', 'https://vintagemagpie.store/admin/');
define('HTTPS_CATALOG', 'https://vintagemagpie.store/');
Hi, this bit I have done and seems to work fine at present.

If you go on a PC browser to vintagemagpie.store it works.
Type this in on a phone it seems to redirect vintagemagpie.store/public_html/ and then index.php doesnt seem to load ?

And I want to turn on seo friendly urls.
thanks
Phil

New member

Posts

Joined
Tue Aug 11, 2020 9:28 pm


Post by JNeuhoff » Thu Oct 29, 2020 12:07 am

I just tested it on an Android tablet, and it works fine. I am using Google Chrome.
Have you cleared your browser cache?

It doesn't seem to do the redirect from the www to the non-www URL though!

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by philehutchinson27 » Thu Oct 29, 2020 12:11 am

JNeuhoff wrote:
Thu Oct 29, 2020 12:07 am
I just tested it on an Android tablet, and it works fine. I am using Google Chrome.
Have you cleared your browser cache?
:-[ oops...

That fixed the android issue, what do I need to add to .htaccess file so I can use seo friendly URLS please.

New member

Posts

Joined
Tue Aug 11, 2020 9:28 pm


Post by JNeuhoff » Thu Oct 29, 2020 12:15 am

Below is the standard OpenCart '.htaccess' for the SEO URLs:

Code: Select all

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/storage/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
And the SEO Urls needs to be enabled in the admin backend at Settings > store > Server > Use SEO Urls: Yes

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by philehutchinson27 » Thu Oct 29, 2020 12:24 am

JNeuhoff wrote:
Thu Oct 29, 2020 12:15 am
Below is the standard OpenCart '.htaccess' for the SEO URLs:

Code: Select all

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/storage/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
And the SEO Urls needs to be enabled in the admin backend at Settings > store > Server > Use SEO Urls: Yes
THank you very much!

New member

Posts

Joined
Tue Aug 11, 2020 9:28 pm


Post by pm2020123 » Sun Nov 01, 2020 7:22 pm

My website https://www.packingmoving.in/ is having issues with ht.access file. I am not able to see my blog pages but the remaining pages are live.

Newbie

Posts

Joined
Sun Nov 01, 2020 7:14 pm

Post by JNeuhoff » Mon Nov 02, 2020 1:13 am

pm2020123 wrote:
Sun Nov 01, 2020 7:22 pm
My website https://www.packingmoving.in/ is having issues with ht.access file. I am not able to see my blog pages but the remaining pages are live.
OpenCart is an ecommerce package, not a blog software! You are either not using OpenCart, or your web theme is such a non-standard poorly written extension, you'd probably have to get in touch with the author(s) of your software or extensions.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: Semrush [Bot] and 92 guests