Use .htaccess to redirect.
Regards,
Deepanshu Kapoor
[sig moderated as per the Forum Rules]
Thread Starter
Robert
(@robbieb1953)
Thanks 756dk.
But where in the file should this be placed?
Hi Robbie,
To solve this problem you will have to check if you have a .htaacess file in your wordpress installation directory.
If not then the solution is: you should save the file as htaccess.txt because many operating systems and FTP applications are unable to read or view .htaccess files by default. Once uploaded to the server you can rename the file to .htaccess.
as of 301 redirect, you can add the following lines to your .htaacess:
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]
Please REPLACE domain.com and http://www.newdomain.com with your actual domain name.
Thread Starter
Robert
(@robbieb1953)
Thanks, ClaytonJames
Thanks, alemranm,
for these suggestions. I will investigate them.
Your efforts are appreciated!