Link change


So i decided to change link names on one of my sites and the site has .html pages

so i changed


to retail-scale-1.html

but how can i create a permanent redirect in html to prevent losing seo pr or any seo power? please advise!

look up “301 redirect”

that didn’t answer my question, i need to know the code for a 301 permanent redirect in html

maybe this will

nope tried google obviously if i found my answer on google i wouldn’t have asked this question?

anyways this question was answered before but i wasn’t able to find the post.

but now i got my .htaccess but for some reason it isn’t working at least not for me. here is the code:

RewriteEngine on
rewritecond %{http_host} ^ [nc]
rewriterule ^(.*)$$1 [r=301,nc] 

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^ [nc]
rewriterule ^(.*)$$1 [r=301,nc] 

and the site properly should be:

but its not adding the www. in front of it :frowning:

After the initial bit of code that adds the www, use this

Redirect 301 /retailscales1.html

awesome that works so for every link i have to do that.

but why isn’t the .htaccess adding that www. in front of ?