Greetings,
I need a help with my .htaccess :
Web requirements: HTTPS, non WWW, without index or index.php also all pages without php extension.
This works but in google search console in Coverage->Excluded->Page with redirect
I have several urls:
https://drevelina.co.il/samples.php Aug 30, 2021
https://drevelina.co.il/index.php Aug 28, 2021
https://drevelina.co.il/portfolio.php Aug 28, 2021
https://drevelina.co.il/cosmetics.php May 26, 2021
And for tests I added for a while https://drevelina.co.il/page1.html. A half month ago this url removed, but it still persist in Coverage->Excluded.
This url not in sitemap.xml also i tried to clean, but with no success.
How to clean excluded section?
Thanks in advance
I need a help with my .htaccess :
Code:
<IfModule mod_headers.c>
Header set Connection keep-alive
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
AddType application/vnd.ms-fontobject .eot
AddType application/x-font-ttf .ttf
AddType application/x-font-opentype .otf
AddType application/x-font-woff .woff
AddType image/svg+xml .svg
ExpiresByType application/vnd.ms-fontobject "access 1 year"
ExpiresByType application/x-font-ttf "access 1 year"
ExpiresByType application/x-font-opentype "access 1 year"
ExpiresByType application/x-font-woff "access 1 year"
ExpiresByType image/svg+xml "access 1 years"
ExpiresByType text/html "access 1 months"
ExpiresByType text/css "access 1 months"
ExpiresByType text/x-javascript "access 1 year"
ExpiresByType application/javascript "access 1 year"
ExpiresByType application/x-javascript "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType image/jpg "access 1 years"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 years"
ExpiresByType application/pdf "access 8 months"
ExpiresByType application/x-shockwave-flash "access 8 months"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 months"
</IfModule>
Options +FollowSymlinks -MultiViews
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$ https://drevelina.co.il/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^.*/index.html
RewriteRule ^(.*)index.html$ https://drevelina.co.il/$1 [R=301,L]
#RewriteCond %{THE_REQUEST} \s/+index/(\S+) [NC]
#RewriteRule ^ %1 [R=301,L]
#remove php ext
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
RewriteRule ^ %1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*?)/?$ $1.php [NC,L]
ErrorDocument 404 /404.shtml
ErrorDocument 500 /500.shtml
# Extra Security Headers
<IfModule mod_headers.c>
ServerSignature Off
Header set X-XSS-Protection "1; mode=block"
Header always append X-Frame-Options SAMEORIGIN
Header set X-Content-Type-Options nosniff
</IfModule>
This works but in google search console in Coverage->Excluded->Page with redirect
I have several urls:
https://drevelina.co.il/samples.php Aug 30, 2021
https://drevelina.co.il/index.php Aug 28, 2021
https://drevelina.co.il/portfolio.php Aug 28, 2021
https://drevelina.co.il/cosmetics.php May 26, 2021
And for tests I added for a while https://drevelina.co.il/page1.html. A half month ago this url removed, but it still persist in Coverage->Excluded.
This url not in sitemap.xml also i tried to clean, but with no success.
How to clean excluded section?
Thanks in advance
Last edited: