Redirect using .htaccess

h@ck3r

New Member
Can I add some code to my htaccess file to redirect from-

mydomain.com to mydomain.com/forum ?

My index.html/ index.php file keeps getting hacked so need to add a redirect into the .htaccess file while I find out why I keep getting hacked :(

Thanks
 
NVM- Found the answer on vbseo website.. add this code to the top of the .htaccess file:

Code:
RewriteEngine on
RewriteRule ^$ http://www.yourwebsitedomain.com/forum/ [L,R=301]
 
Back
Top