WebSite X5Help Center

 
Terry  R.
Terry R.
User

Duplicate content  en

Autor: Terry R.
Visitado 458, Seguidores 1, Compartilhado 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.

Publicado em
60 RESPOSTAS
Esahc ..
Esahc ..
Moderator

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

Ler mais
Publicado em de Esahc ..
Terry  R.
Terry R.
User
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.

Ler mais
Publicado em de Terry R.
Terry  R.
Terry R.
User
Autor

I have a 301 redirect in my htaccess So i don't know whey this is happening.

Ler mais
Publicado em de Terry R.
Paul M.
Paul M.
Moderator

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

Ler mais
Publicado em de Paul M.
Paul M.
Paul M.
Moderator
Terry R.
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.

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.

Ler mais
Publicado em de Paul M.
Terry  R.
Terry R.
User
Autor

htaccess file attached. What then would be the right way to write a 301? Thanks again.

Ler mais
Publicado em de Terry R.
Terry  R.
Terry R.
User
Autor

The htaccess file is stored in the public_html folder on my server.

Ler mais
Publicado em de Terry R.
Terry  R.
Terry R.
User
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.

Ler mais
Publicado em de Terry R.
Paul M.
Paul M.
Moderator

Your .htaccess file as it stands will only do two things:

  1. It will redirect non-secure (http) traffic to secure (https)
  2. And it will redirect the www version of your site (www.abledomestics.co.uk) to the non-www version (abledomestics.co.uk)

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.

Ler mais
Publicado em de Paul M.
Terry  R.
Terry R.
User
Autor

So literally copy and paste this into the htaccess, Redirect 301 /index.html https://abledomestics.co.uk ?

Thanks.

Ler mais
Publicado em de Terry R.
Terry  R.
Terry R.
User
Autor

Have added the line and now the page will not open.

Ler mais
Publicado em de Terry R.
Paul M.
Paul M.
Moderator

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.

Ler mais
Publicado em de Paul M.
Paul M.
Paul M.
Moderator

This is why I prefer doing things the canonical way wink

We'll need a more sophisticated code...  have you tried the second suggestion posted above?

Ler mais
Publicado em de Paul M.
Paul M.
Paul M.
Moderator

Try typing the code into the .htaccess file, Terry, as opposed to pasting it in...  I think I can see what's going wrong

Ler mais
Publicado em de Paul M.
Terry  R.
Terry R.
User
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

Ler mais
Publicado em de Terry R.
Terry  R.
Terry R.
User
Autor

Paul M.

Do you add a canonical to every page? and should the canonical have the full url on each page?

Ler mais
Publicado em de Terry R.
Paul M.
Paul M.
Moderator

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.

Ler mais
Publicado em de Paul M.
Terry  R.
Terry R.
User
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

Ler mais
Publicado em de Terry R.
Paul M.
Paul M.
Moderator

I've added the line to the file attached

Ler mais
Publicado em de Paul M.
Terry  R.
Terry R.
User
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

Ler mais
Publicado em de Terry R.
Paul M.
Paul M.
Moderator

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.

Ler mais
Publicado em de Paul M.
Terry  R.
Terry R.
User
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.

Ler mais
Publicado em de Terry R.
Paul M.
Paul M.
Moderator

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!

Ler mais
Publicado em de Paul M.
Terry  R.
Terry R.
User
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

Ler mais
Publicado em de Terry R.
Terry  R.
Terry R.
User
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. 

Ler mais
Publicado em de Terry R.
Terry  R.
Terry R.
User
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

Ler mais
Publicado em de Terry R.
Terry  R.
Terry R.
User
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

Ler mais
Publicado em de Terry R.
Terry  R.
Terry R.
User
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

Ler mais
Publicado em de Terry R.
Terry  R.
Terry R.
User
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.

Ler mais
Publicado em de Terry R.
Terry  R.
Terry R.
User
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.

Ler mais
Publicado em de Terry R.
Paul M.
Paul M.
Moderator

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.

Ler mais
Publicado em de Paul M.
Paul M.
Paul M.
Moderator

The .htaccess redirect is working now, Terry.

Ler mais
Publicado em de Paul M.
Tayfun B.
Tayfun B.
User

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]

Ler mais
Publicado em de Tayfun B.
Paul M.
Paul M.
Moderator

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.

Ler mais
Publicado em de Paul M.
Tayfun B.
Tayfun B.
User

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.

Ler mais
Publicado em de Tayfun B.
Paul M.
Paul M.
Moderator

www.abledomestics.co.uk appears to redirect successfully to abledomestics.co.uk

Ler mais
Publicado em de Paul M.
Tayfun B.
Tayfun B.
User

Terry page other problem 12 canonical. short time google index stop.

Ler mais
Publicado em de Tayfun B.
Tayfun B.
Tayfun B.
User

Paul wait. I testing.

Ler mais
Publicado em de Tayfun B.
Tayfun B.
Tayfun B.
User

Domain DNS validation problem

Ler mais
Publicado em de Tayfun B.
Terry  R.
Terry R.
User
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.

Ler mais
Publicado em de Terry R.
Terry  R.
Terry R.
User
Autor

Also. Do I still need the conanicl tags on each or any page?

Thanks.

Ler mais
Publicado em de Terry R.
Tayfun B.
Tayfun B.
User

Hi Terry

Now ok. Change canoical yor problem finish.

You add canonical homepage (first page)

Ler mais
Publicado em de Tayfun B.
Tayfun B.
Tayfun B.
User

sorry bad code. wait

Ler mais
Publicado em de Tayfun B.
Tayfun B.
Tayfun B.
User

You look picture

Ler mais
Publicado em de Tayfun B.
Tayfun B.
Tayfun B.
User

other all canonical delete

Ler mais
Publicado em de Tayfun B.
Tayfun B.
Tayfun B.
User

page important www and finish time you go to server control panel and delete subnet or change subnet name

Ler mais
Publicado em de Tayfun B.
Tayfun B.
Tayfun B.
User

Change this picture

Ler mais
Publicado em de Tayfun B.
Tayfun B.
Tayfun B.
User

4 picture very big size

change format jpeg

Ler mais
Publicado em de Tayfun B.
Tayfun B.
Tayfun B.
User

350 kb picture3 change3 35 kb

Ler mais
Publicado em de Tayfun B.
Tayfun B.
Tayfun B.
User
Tayfun B.
350 kb picture change 35 kb
Ler mais
Publicado em de Tayfun B.
Tayfun B.
Tayfun B.
User

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" />

Ler mais
Publicado em de Tayfun B.
Tayfun B.
Tayfun B.
User

Now add canonical

You go websitex5 map.

homepage properties expert

this side add to canonical but not add target.

You look picture

Ler mais
Publicado em de Tayfun B.