Friday, May 22, 2015

.htaccess 301 redirect PLUS url rewrite

Premise:




  • My photography website is www.domain.com and my blog is on www.domain.com/blog.

  • Everything is on self hosted wordpress platform.

  • On my index page I have my photo galleries.

  • I now would like to use a third party service to host my galleries at www.galleries.com/me.




What I would like to achieve:




  • when someone visits www.domain.com it gets redirected 301 to www.galleries.com/me but keeps my domain visible in url address

  • when someone visits www.domain.com/blog everything stays as usual and nothing changes.



What I thought:





  • usa redirect rule PLUS a rewrite rule on my .htaccess



Questions:




  • Is it possible?

  • How can i do it?

  • How does it affects SEO?




I tried to make it as simple as I could :)
Thanks

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...