.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 ?
FernanditosAsked:
Who is Participating?
 
whosbetterthanmeConnect With a Mentor Commented:
Keep in mind that you need to restart Apache when you make a change to any conf file.
0
 
wuyinzhiCommented:
try this:

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

more detail: http://www.isitebuild.com/301-redirect.htm
0
 
FernanditosAuthor Commented:
not working...
0
 
DexTexMexCommented:
RewriteEngine On
RewriteBase /
RewriteCond % ^www.site.com [NC]
RewriteRule ^(.*)$ http://site.com/$1 [L,R=301

RewriteRule ^(.*)$ http://site.com/board/ [R=permanent]
0
 
FernanditosAuthor Commented:
I have been forced to accept, otherwise I can not ask another question. THis solution did not solved my issue.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.