PMonaghan
New Member
Hi, I am new to this forum - and any forum. I need help learning how to do a redirect for specific pages of a website. I have the code:
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} *domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301, nc]
I know that I am supposed to replace domain.com and www.newdomain.com with the actual domain names, but I don't want to redirect the domain, I want to redirect pages. I have tried to find help on the Internet (and went to the hosting company), but I cannot find the help I need to make this work. Can anyone help me? I want to redirect someone typing in the old or former name of the page to the newly-named page on the same website. Thanks so much!
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} *domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301, nc]
I know that I am supposed to replace domain.com and www.newdomain.com with the actual domain names, but I don't want to redirect the domain, I want to redirect pages. I have tried to find help on the Internet (and went to the hosting company), but I cannot find the help I need to make this work. Can anyone help me? I want to redirect someone typing in the old or former name of the page to the newly-named page on the same website. Thanks so much!