PDA

View Full Version : 301 redirects asp.net VWD


jpweber
01-07-2012, 11:46 AM
Hello!

I want to do a couple things, and I'm sure they're remedial for many, but they're complicated for me.

First, I want to make sure that when someone types mydomain.com, they're redirected to www.mydomain.com -- so it always uses the www. I know that's better for search engines and duplicate content.

Secondly, I have some pages that I moved to another folder. So instead of getting a customerror when they go to www.mydomain.com/services/exactscan.aspx, they're automatically redirected to www.mydomain.com/products/exactscan.aspx.

I'm not sure whether it's more recommended to use .htaccess in my root, or to use my web.config in Visual Web Developer.

Any and all feedback would be sincerely appreciated!

Jason Weber