Link change

Hello,

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

so i changed

retailscales1.html

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} ^thescaleauthority.com/ [nc]
rewriterule ^(.*)$ http://www.thescaleauthority.com//$1 [r=301,nc] 

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^www.thescaleauthority.com/retailscales1.html [nc]
rewriterule ^(.*)$ http://www.thescaleauthority.com/retail-scale-1.html/$1 [r=301,nc] 

and the site properly should be:

http://thescaleauthority.com

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 http://www.thescaleauthority.com/retail-scale-1.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 thescaleauthority.com ?