Post by motofox » Tue Jun 11, 2024 3:12 am

My site doesnt have the www at the start just website name, google console shows both the www version and not non www version,

on google console the www version is showing as its indexed on google so im thinking i should be using that instead as the non www one isnt indexed.

as you can see i carnt get my head around this bit, so any advise would be much appreciated on if i should change it and how.

regards

martin

New member

Posts

Joined
Wed Nov 19, 2014 10:44 pm

Post by johnp » Tue Jun 11, 2024 4:55 am

motofox wrote:
Tue Jun 11, 2024 3:12 am
My site doesnt have the www at the start just website name, google console shows both the www version and not non www version,

on google console the www version is showing as its indexed on google so im thinking i should be using that instead as the non www one isnt indexed.

as you can see i carnt get my head around this bit, so any advise would be much appreciated on if i should change it and how.

regards

martin
Try editing your config.php and admin/config.php files to show the www version.

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by motofox » Tue Jun 11, 2024 5:00 am

i sussed it, thanks
johnp wrote:
Tue Jun 11, 2024 4:55 am
motofox wrote:
Tue Jun 11, 2024 3:12 am
My site doesnt have the www at the start just website name, google console shows both the www version and not non www version,

on google console the www version is showing as its indexed on google so im thinking i should be using that instead as the non www one isnt indexed.

as you can see i carnt get my head around this bit, so any advise would be much appreciated on if i should change it and how.

regards

martin
Try editing your config.php and admin/config.php files to show the www version.

New member

Posts

Joined
Wed Nov 19, 2014 10:44 pm

Post by johnp » Tue Jun 11, 2024 5:02 am

Perfect. :)

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by Elevate » Tue Jun 11, 2024 8:21 am

You need to take it one step further and put a redirect in your .htaccess file

This redirect is so that all requests for the non www URL will be forwarded to the www url

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

ELEV8TE Website Development
Available for hire - please contact me at https://www.elev8your.com/contact
https://www.elev8your.com


User avatar
Active Member

Posts

Joined
Fri Jul 06, 2018 12:40 am
Location - Denver, Colorado, USA
Who is online

Users browsing this forum: No registered users and 17 guests