Setting up a redirect
-
Hiya,
I am trying to set up a redirect from my blog which is at
to my new blog (I have transferred all my old content over)at
Now, I still have content at https://www.mysite.co.uk which must stay intact so it is just the blog part that must be redirected. This means I cannot just put a simple redirect of the old domain to the new domain in place.
I have been reading about 301 redirects, so created an .htaccess file withOptions +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^mysite.co.uk/blog [nc]
rewriterule ^(.*)$ https://www.anothersite.com/$1 [r=301,nc]and put it in the directory where my wordpress installation is…..the reason I am here is because obviously I have done something wrong as it….er…doesnt work !
Any advice would be great ??
Alistair
- The topic ‘Setting up a redirect’ is closed to new replies.