Questions
-
6 .htaccess Rewrites: Remove index.html, Remove .html, Force non-www, Force Trailing Slash
#index redirect RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index.html\ HTTP/ RewriteRule ^index.html$ http://domain.com/ [R=301,L] RewriteCond %{THE_REQUEST} .html RewriteRule ^(.*).html$ /$1 [R=301,L] hi anyone please help I use this code but now getting 404 error. please help. i also remove this code again but still same issue.
Intermediate & Advanced SEO | | roynguyen0 -
Canonical
Thanks Dana , can you help me with redirecting non trailing slash to trailing slash at the end , my wordpress is in sub dictionary http://domain.com/blog/ and i have two .htaccess , one in root and one in the wordpress folder. i tried to solve it by adding that code in the root .htaccess RewriteEngine On RewriteBase /blog/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.)/$ RewriteRule ^(.)$ http://ghadaalsaman.com/blog/$1/ [L,R=301] Wordpress give 200 OK with the two versions ( with and without trailing slash ) and that hurts my SEO Thanks in advanced
Technical SEO Issues | | NeatIT0