Hi Everyone,
I recently started working with an SEO company who offered to help us get our WYSIWYG designed website further up the search engines.
One of the problems they said was that google sees 3 urls for the home page.
https://www.yourdomain.co.uk
www.yourdomain.co.uk
https://www.yourdomain.co.uk/index.php
They suggested we use the following .htaccess file, I’m not how much this has improved our ranking but at least google only sees one url now.
ErrorDocument 404 /index.php
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yourdomain.co.uk$ [NC]
RewriteRule (.*) https://www.yourdomain.co.uk/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteRule (.?)index\.php/(.*) /$1$2 [R=301,NE,L]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
SEO
Forum rules
This section is to share tips, tricks and tutorials related to WYSIWYG Web Builder.
Please do not post questions or problems here. They will not be answered.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
This section is to share tips, tricks and tutorials related to WYSIWYG Web Builder.
Please do not post questions or problems here. They will not be answered.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
- colin1661music
-
- Posts: 113
- Joined: Sun May 31, 2015 3:49 pm
- Location: London
- Contact:
-
-
- Posts: 1433
- Joined: Fri Aug 21, 2020 8:27 am
- Contact:
Re: SEO
From my perspective this is an off-topic question and should belong to that thread.colin1661music wrote: ↑Fri Nov 11, 2022 9:38 am I recently started working with an SEO company who offered to help us get our WYSIWYG designed website further up the search engines.
One of the problems they said was that google sees 3 urls for the home page.
https://www.yourdomain.co.uk
www.yourdomain.co.uk
https://www.yourdomain.co.uk/index.php
They suggested we use the following .htaccess file, I’m not how much this has improved our ranking but at least google only sees one url now.
It is ironic that an SEO company who offered to help you get your WYSIWYG designed website further up the search engines could not figure this simple SEO issue which is called canonical url. I also practice SEO tactics myself. From my understanding it may be canonical url issue there.
See more about it in here:
https://support.google.com/webmasters/a ... 0canonical
We seo optimized our website too by clicking here or below
- BaconFries
-
- Posts: 5620
- Joined: Thu Aug 16, 2007 7:32 pm
Re: SEO
Perhaps, but in this instance it is being offered as a tip on how to setup a .htacess and not a question on the use of such.From my perspective this is an off-topic question and should belong to that thread
-
-
- Posts: 1433
- Joined: Fri Aug 21, 2020 8:27 am
- Contact:
Re: SEO
True, I reconsider it. Thank you for the guidance @Bacon.BaconFries wrote: ↑Fri Nov 11, 2022 12:33 pmPerhaps, but in this instance, it is being offered as a tip on how to setup a .htacess and not a question on the use of such.From my perspective this is an off-topic question and should belong to that thread
-
-
- Posts: 1433
- Joined: Fri Aug 21, 2020 8:27 am
- Contact:
Re: SEO
There are posts in this forum where canonical page has been discussed along with htaccess. The codes you have provided we cannot verify the use of it as it was given by the seo agency of yours. Remember to use any code in .htaccess with caution.
See some of these posts for some indication
https://wp-mix.com/canonical-www-htaccess/
http://wysiwygwebbuilder.com/forum/view ... =canonical
https://www.wysiwygwebbuilder.com/forum ... hp?t=94333
http://wysiwygwebbuilder.com/forum/view ... =canonical
See some of these posts for some indication
https://wp-mix.com/canonical-www-htaccess/
http://wysiwygwebbuilder.com/forum/view ... =canonical
https://www.wysiwygwebbuilder.com/forum ... hp?t=94333
http://wysiwygwebbuilder.com/forum/view ... =canonical