Link to home
Start Free TrialLog in
Avatar of Fernanditos
Fernanditos

asked on

.htacess question

Hi,

I have my main site located at site.com/board/

Since I don't have a site.com/index.php I would like to  call only site.com and have the content of site.com/board/

so, this: site.com = site.com/board/

How can I do this using .htaccess ?
Avatar of wuyinzhi
wuyinzhi
Flag of Indonesia image

try this:

redirect 301 / http://www.site.com/board/

more detail: http://www.isitebuild.com/301-redirect.htm
Avatar of Fernanditos
Fernanditos

ASKER

not working...
RewriteEngine On
RewriteBase /
RewriteCond % ^www.site.com [NC]
RewriteRule ^(.*)$ http://site.com/$1 [L,R=301

RewriteRule ^(.*)$ http://site.com/board/ [R=permanent]
ASKER CERTIFIED SOLUTION
Avatar of whosbetterthanme
whosbetterthanme
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I have been forced to accept, otherwise I can not ask another question. THis solution did not solved my issue.