Duplicate content
Autor: Terry R.
Besucht 2366,
Followers 1,
Geteilt 0
Hi.
Why am I constantly being nagged about duplicate page titles and descriptions with this software? https://abledomestics.co.uk/ and https://abledomestics.co.uk/index.html no matter what I do, I cannot get rid of this, The titles and descriptions are different on both but still getting nagged at about it. Any help on this would be greatly apreciated.
Gepostet am
Terry, I suspect it is in relation to the properties of each page. Click on step 3 map, select each page and check the properties
Autor
I have done all that, It just seems to be the settings page and the home page. I have attached pics of the home page and settings page to show they are both different. Thanks.
Autor
I have a 301 redirect in my htaccess So i don't know whey this is happening.
Hello Terry,
Your 301 redirect is definitely not working. What code do you have in your .htaccess file for that purpose, and where is your .htaccess file in relation to your WebSite X5 project on the server?
Kind regards,
Paul
Search the WebSite X5 Help Center
It's important to understand that there is only ONE physical page on the server.
Any 'description' which you enter in Step 1 Settings in WebSite X5 will only be applied (on a global basis) to any page which you have not already given unique settings using the 'Properties' tab which Gordon (Esahc) referred to.
If you look at the source code of the page which is returned when you enter either of these URLs in a browser...
https://abledomestics.co.uk/
https://abledomestics.co.uk/index.html
...you will see it is exactly the same, including the 'description' and 'keywords', which are NOT inherited from Step 1 Settings, but are those which you have specified in the index.html Page Properties.
However, Google (and other search engines) don't know this... they only see the same/duplicated content accessible from two separate URLs. So you need to tell Google which URL you want as the definitive one, so it can ignore the other. The definitive URL is known as the canonical version:
https://support.google.com/webmasters/answer/139066?hl=en
Your 301 redirect should have the same effect, but like I mentioned earlier it is currently faulty.
Autor
htaccess file attached. What then would be the right way to write a 301? Thanks again.
Autor
The htaccess file is stored in the public_html folder on my server.
Autor
I am being nagged about duplicate content and a problem with http and https. So I added this to the htaccess file hoping to cure the problem.
Your .htaccess file as it stands will only do two things:
You need to add a new entry to redirect anyone requesting index.html:
Redirect 301 /index.html https://abledomestics.co.uk
Put that line on its own... after 'RewriteEngine On', but don't include it as part of the existing Rewrite condition and rule... in other words put it on a new line AFTER the RewriteRule.
If you have more than one site in your public_html folder then you might need a more sophisticated rule to avoid issues.
Setting a canonical URL is an alternative to a 301 redirect in this situation. Personally, I prefer that method. See the link I posted earlier:
https://support.google.com/webmasters/answer/139066?hl=en
Autor
So literally copy and paste this into the htaccess, Redirect 301 /index.html https://abledomestics.co.uk ?
Thanks.
Autor
Have added the line and now the page will not open.
Yes...
Redirect 301 https://abledomestics.co.uk/index.html https://abledomestics.co.uk
...should also work, and will avoid conflicts if you have any other files named index.html in subfolders within the public_html folder on the server.
So try that first and we'll see if it works. If you let us know when you have uploaded the new file then we can test for you.
This is why I prefer doing things the canonical way
We'll need a more sophisticated code... have you tried the second suggestion posted above?
Autor
Now getting oops 404 page not found, have added the line Redirect 301 https://abledomestics.co.uk/index.html https://abledomestics.co.uk
Try typing the code into the .htaccess file, Terry, as opposed to pasting it in... I think I can see what's going wrong
Autor
So my htacces now reads.
# WebSite X5 - Start Code [do not edit]
ErrorDocument 404 /404.html
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
</IfModule>
# WebSite X5 - End Code
RewriteEngine On
Redirect 301 https://abledomestics.co.uk/index.htmlhttps://abledomestics.co.uk
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
# BEGIN GZIP
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>
# END GZIP
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType res/jquery.js?15-1-1-0 "access plus 1 year"
ExpiresByType res/x5engine.js?15-1-1-0 "access plus 1 year"
ExpiresByType style/reset.css?15-1-1-0 "access plus 1 year"
ExpiresByType style/style.css?15-1-1-0 "access plus 1 year"
ExpiresByType style/template.css?15-1-1-0 "access plus 1 year"
ExpiresByType appsresources/hover.css "access plus 1 year"
ExpiresByType imHeader_pluginAppObj_15/custom.css "access plus 1 year"
ExpiresByType pcss/index.css?15-1-1-0-636588889872287112 "access plus 1 year"
ExpiresByType style/template.css?15-1-1-0 "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 year"
ExpiresByType application/x-shockwave-flash "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType http://connect.facebook.net/en_GB/sdk.js "access plus 1 year"
ExpiresByType http://www.google-analytics.com/analytics.js "access plus 1 year"
ExpiresDefault "access plus 1 year"
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73†package as the default “PHP†programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
There should be a space between the two URLs:
Redirect 301 https://abledomestics.co.uk/index.html [SPACE HERE] https://abledomestics.co.uk
Autor
Paul M.
Do you add a canonical to every page? and should the canonical have the full url on each page?
You can if you wish, it does no harm, but it's only strictly needed where there could be ambiguity... i.e. two URLs lead to one page
Yes, set the canonical to the full URL.
Autor
Paul M. There is a space Now getting a 500 error internal server error
# WebSite X5 - Start Code [do not edit]
ErrorDocument 404 /404.html
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
</IfModule>
# WebSite X5 - End Code
RewriteEngine On
Redirect 301 https://abledomestics.co.uk/index html https://abledomestics.co.uk
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
# BEGIN GZIP
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>
# END GZIP
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType res/jquery.js?15-1-1-0 "access plus 1 year"
ExpiresByType res/x5engine.js?15-1-1-0 "access plus 1 year"
ExpiresByType style/reset.css?15-1-1-0 "access plus 1 year"
ExpiresByType style/style.css?15-1-1-0 "access plus 1 year"
ExpiresByType style/template.css?15-1-1-0 "access plus 1 year"
ExpiresByType appsresources/hover.css "access plus 1 year"
ExpiresByType imHeader_pluginAppObj_15/custom.css "access plus 1 year"
ExpiresByType pcss/index.css?15-1-1-0-636588889872287112 "access plus 1 year"
ExpiresByType style/template.css?15-1-1-0 "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 year"
ExpiresByType application/x-shockwave-flash "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType http://connect.facebook.net/en_GB/sdk.js "access plus 1 year"
ExpiresByType http://www.google-analytics.com/analytics.js "access plus 1 year"
ExpiresDefault "access plus 1 year"
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73†package as the default “PHP†programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
Redirect 301 https://abledomestics.co.uk/index html https://abledomestics.co.uk
I see 'html' between the two URLs above?
And you need a period (.) between index and html:
index.html
I've added the line to the file attached
Autor
I have now added the line and the site now opens but now shows not secure in google chrome. Pic attached I have circled the not secure. I do apreciate all this help.
htaccess now reads
# WebSite X5 - Start Code [do not edit]
ErrorDocument 404 /404.html
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
</IfModule>
# WebSite X5 - End Code
RewriteEngine On
Redirect 301 https://abledomestics.co.uk/index.htmlhttps://abledomestics.co.uk
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
# BEGIN GZIP
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>
# END GZIP
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType res/jquery.js?15-1-1-0 "access plus 1 year"
ExpiresByType res/x5engine.js?15-1-1-0 "access plus 1 year"
ExpiresByType style/reset.css?15-1-1-0 "access plus 1 year"
ExpiresByType style/style.css?15-1-1-0 "access plus 1 year"
ExpiresByType style/template.css?15-1-1-0 "access plus 1 year"
ExpiresByType appsresources/hover.css "access plus 1 year"
ExpiresByType imHeader_pluginAppObj_15/custom.css "access plus 1 year"
ExpiresByType pcss/index.css?15-1-1-0-636588889872287112 "access plus 1 year"
ExpiresByType style/template.css?15-1-1-0 "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 year"
ExpiresByType application/x-shockwave-flash "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType http://connect.facebook.net/en_GB/sdk.js "access plus 1 year"
ExpiresByType http://www.google-analytics.com/analytics.js "access plus 1 year"
ExpiresDefault "access plus 1 year"
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73†package as the default “PHP†programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
Sorry Terry, that text looks quite radically different from the original .htaccess file you first posted:
RewriteEngine On
Redirect 301 https://abledomestics.co.uk/index.htmlhttps://abledomestics.co.uk
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
If you compare what you've got there with the first .htaccess file you posted in the thread above, you'll see what I mean. The code above won't work at all. In an .htacess file everything has to be 100% correct. If even one letter or digit is wrong, it just won't work.
I posted the correct code in my last reply (see the attachment above). You can use that if you like. Otherwise, I feel it would be best to revert to your original .htaccess file and use the canonical method instead. You have to be so careful when editing .htaccess rules.
Autor
Hi Thanks. Did not see your attachment. I have now copied and pasted your text into my htaccess. Not secure now gone from google chrome and site loading. However I still have the duplicate title and description. I am using seo powersuite pic attached.
Your .htaccess file still isn't working at present.
Is your WebSite X5 project (abledomestics) in the public_html folder on the server, or is it in a sub-folder within the public_html folder?
Can you also please attach your revised .htaccess file so I can check its contents?
Thanks!
Autor
It directly is in the public_html folder
# WebSite X5 - Start Code [do not edit]
ErrorDocument 404 /404.html
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
</IfModule>
# WebSite X5 - End Code
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^ https://abledomestics.co.uk%{REQUEST_URI} [L,NE,R=301]
Redirect 301 https://abledomestics.co.uk/index.htmlhttps://abledomestics.co.uk
# BEGIN GZIP
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>
# END GZIP
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType res/jquery.js?15-1-1-0 "access plus 1 year"
ExpiresByType res/x5engine.js?15-1-1-0 "access plus 1 year"
ExpiresByType style/reset.css?15-1-1-0 "access plus 1 year"
ExpiresByType style/style.css?15-1-1-0 "access plus 1 year"
ExpiresByType style/template.css?15-1-1-0 "access plus 1 year"
ExpiresByType appsresources/hover.css "access plus 1 year"
ExpiresByType imHeader_pluginAppObj_15/custom.css "access plus 1 year"
ExpiresByType pcss/index.css?15-1-1-0-636588889872287112 "access plus 1 year"
ExpiresByType style/template.css?15-1-1-0 "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 year"
ExpiresByType application/x-shockwave-flash "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType http://connect.facebook.net/en_GB/sdk.js "access plus 1 year"
ExpiresByType http://www.google-analytics.com/analytics.js "access plus 1 year"
ExpiresDefault "access plus 1 year"
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
Autor
Also here is a pic of the settings page in website x5 I don't know if this has anything to do with it.
Autor
Sorry gave you the wrong one. This is the new htacces code.
# WebSite X5 - Start Code [do not edit]
ErrorDocument 404 /404.html
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
</IfModule>
# WebSite X5 - End Code
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^ https://abledomestics.co.uk%{REQUEST_URI} [L,NE,R=301]
Redirect 301 https://abledomestics.co.uk/index.htmlhttps://abledomestics.co.uk
# BEGIN GZIP
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>
# END GZIP
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType res/jquery.js?15-1-1-0 "access plus 1 year"
ExpiresByType res/x5engine.js?15-1-1-0 "access plus 1 year"
ExpiresByType style/reset.css?15-1-1-0 "access plus 1 year"
ExpiresByType style/style.css?15-1-1-0 "access plus 1 year"
ExpiresByType style/template.css?15-1-1-0 "access plus 1 year"
ExpiresByType appsresources/hover.css "access plus 1 year"
ExpiresByType imHeader_pluginAppObj_15/custom.css "access plus 1 year"
ExpiresByType pcss/index.css?15-1-1-0-636588889872287112 "access plus 1 year"
ExpiresByType style/template.css?15-1-1-0 "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 year"
ExpiresByType application/x-shockwave-flash "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType http://connect.facebook.net/en_GB/sdk.js "access plus 1 year"
ExpiresByType http://www.google-analytics.com/analytics.js "access plus 1 year"
ExpiresDefault "access plus 1 year"
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
Autor
# WebSite X5 - Start Code [do not edit]
ErrorDocument 404 /404.html
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
</IfModule>
# WebSite X5 - End Code
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^ https://abledomestics.co.uk%{REQUEST_URI} [L,NE,R=301]
Redirect 301 https://abledomestics.co.uk/index.htmlhttps://abledomestics.co.uk
# BEGIN GZIP
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>
# END GZIP
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType res/jquery.js?15-1-1-0 "access plus 1 year"
ExpiresByType res/x5engine.js?15-1-1-0 "access plus 1 year"
ExpiresByType style/reset.css?15-1-1-0 "access plus 1 year"
ExpiresByType style/style.css?15-1-1-0 "access plus 1 year"
ExpiresByType style/template.css?15-1-1-0 "access plus 1 year"
ExpiresByType appsresources/hover.css "access plus 1 year"
ExpiresByType imHeader_pluginAppObj_15/custom.css "access plus 1 year"
ExpiresByType pcss/index.css?15-1-1-0-636588889872287112 "access plus 1 year"
ExpiresByType style/template.css?15-1-1-0 "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 year"
ExpiresByType application/x-shockwave-flash "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType http://connect.facebook.net/en_GB/sdk.js "access plus 1 year"
ExpiresByType http://www.google-analytics.com/analytics.js "access plus 1 year"
ExpiresDefault "access plus 1 year"
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
Autor
# WebSite X5 - Start Code [do not edit]
ErrorDocument 404 /404.html
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
</IfModule>
# WebSite X5 - End Code
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^ https://abledomestics.co.uk%{REQUEST_URI} [L,NE,R=301]
Redirect 301 https://abledomestics.co.uk/index.htmlhttps://abledomestics.co.uk
# BEGIN GZIP
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>
# END GZIP
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType res/jquery.js?15-1-1-0 "access plus 1 year"
ExpiresByType res/x5engine.js?15-1-1-0 "access plus 1 year"
ExpiresByType style/reset.css?15-1-1-0 "access plus 1 year"
ExpiresByType style/style.css?15-1-1-0 "access plus 1 year"
ExpiresByType style/template.css?15-1-1-0 "access plus 1 year"
ExpiresByType appsresources/hover.css "access plus 1 year"
ExpiresByType imHeader_pluginAppObj_15/custom.css "access plus 1 year"
ExpiresByType pcss/index.css?15-1-1-0-636588889872287112 "access plus 1 year"
ExpiresByType style/template.css?15-1-1-0 "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 year"
ExpiresByType application/x-shockwave-flash "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType http://connect.facebook.net/en_GB/sdk.js "access plus 1 year"
ExpiresByType http://www.google-analytics.com/analytics.js "access plus 1 year"
ExpiresDefault "access plus 1 year"
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
Autor
Strange! there is deffinately a space in the htaccess. But when I paste the code into here it does not show the space so I have attached the htaccess file.
Autor
When I open my ftp client there is a folder called publi_html and one called www they both contain the same files. pic attached.
Please remove this line in the .htaccess file, Terry:
Redirect 301 https://abledomestics.co.uk/index.html https://abledomestics.co.uk
...and replace with the following block of code:
RewriteEngine On
RewriteRule ^index\.html$ / [R=301,L]
RewriteRule ^(.*)/index\.html$ /$1/ [R=301,L]
Once you've uploaded to the server please let me know if that now works.
The .htaccess redirect is working now, Terry.
Hi Terry
Your page problem. maybe not big problem.
your page problem
www and non-www versions are not fixed on your website. Correct this to ensure that search engines do not keep two website versions in their index.
Change .htaccess code.
I add Paul .htaccess code.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteRule ^index\.html$ / [R=301,L]
RewriteRule ^(.*)/index\.html$ /$1/ [R=301,L]
Hello Tayfun,
If you read the whole thread in its entirety you will see that the redirects you refer to were already addressed in the original code that Terry was using.
The code I suggested was an addition to his original .htaccess file, not a replacement.
I've added this footnote just to avoid any confusion for Terry's sake.
When I checked three days ago all redirects were working as they should, and that still appears to be the case today.
Thank you for your input, Tayfun.
Hi Paul
i know but i testing Terry web page and i see this fault.
(www and non-www versions are not fixed on your website. Correct this to ensure that search engines do not keep two website versions in their index.)
The same my web page problem.
Your code and my .htaccess code together problem finish.
www.abledomestics.co.uk appears to redirect successfully to abledomestics.co.uk
Terry page other problem 12 canonical. short time google index stop.
Paul wait. I testing.
Domain DNS validation problem
Autor
I have added Tayfun's code. Now the home page reads https://www.abledomestics.co.uk/ there is no index.html at the end. So I thnk that this is right. Am I right in thinking that?
Thanks.
Autor
Also. Do I still need the conanicl tags on each or any page?
Thanks.
Hi Terry
Now ok. Change canoical yor problem finish.
You add canonical homepage (first page)
<linkrel="canonical" href="https://abledomestics.co.uk/" target="_blank" rel="nofollow">https://abledomestics.co.uk/index.html">https://abledomestics.co.uk/" />
sorry bad code. wait
<linkrel="canonical" href="https://abledomestics.co.uk" target="_blank" rel="nofollow">https://abledomestics.co.uk/index.html">https://abledomestics.co.uk" />
You look picture
other all canonical delete
href="https://www.abledomestics.co.uk"" target="_blank" rel="nofollow">https://abledomestics.co.uk/index.html">https://www.abledomestics.co.uk"
Canonical www
page important www and finish time you go to server control panel and delete subnet or change subnet name
Change this picture
4 picture very big size
change format jpeg
350 kb picture3 change3 35 kb
Autor
Hi
So do I put this after the head in the index or home page, or the settings page?
href="https://www.abledomestics.co.uk"" target="_blank" rel="nofollow">https://www.abledomestics.co.uk"" target="_blank" rel="nofollow">https://abledomestics.co.uk/index.html">https://www.abledomestics.co.uk"
And do i delete the conanicals in all the other pages?
Thanks.
Hi Terry
Not delete canoical.
Now start point point
Open websitex5
You goto settings and advanced
click SEO and Code later click code and delete canonical
<linkrel="canonical"href="https://abledomestics.co.uk" target="_blank" rel="nofollow">https://abledomestics.co.uk/">https://abledomestics.co.uk" target="_blank" rel="nofollow">https://abledomestics.co.uk"" target="_blank" rel="nofollow">https://abledomestics.co.uk/index.html">https://abledomestics.co.uk" />
Now add canonical
You go websitex5 map.
homepage properties expert
this side add to canonical but not add target.
You look picture