HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How to redirect using htaccess?

Hello guys how will you do this in htaccess.

Reason for this is i moved my site from mybb to vanilla same domain name and same location both in root directory but the url scheme are different, my google webmaster tool says i have thousands of error links. I read that redirect 301 could help?

will this work?

//Rewrite to www
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysite.com[nc]
RewriteRule ^(.*)$ http://www.mysite.com/$1 [r=301,nc]



Sign In or Register to comment.