Hey all.
So I've used htaccess to remove the .html and .php from the URL, but now they're appearing as duplicate content in Semrush.
What would be the best way to stop this happening: canonical, htaccess changes, or ?
HTACCESS:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# Remove HTML extension
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.+?)/?$ $1.html [L]
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.+?)/?$ $1.php [L]
[link] [comments]
from Search Engine Optimization: The Latest SEO News https://ift.tt/2HVib3O
via IFTTT
how to make money out of blogging
how much money do bloggers make? can blogs make money? make money off ads how to get money from blogging? best websites to make money blog adsense income earn from blogging website ideas to make money how websites make money?
No hay comentarios.:
Publicar un comentario