Forum Moderators: phranque
I have a website
www.mysite.com/forum/
Is there anyway to do a .htaccess for changing the forum folder into the main site?
ie...
When I type
www.mysite.com
It would pull up information from www.mysite.com/forum/
But still display www.mysite.com
Also.....
If that worked let's say I have:
www.mysite.com/forum/page1.html
Could I pull up page1.html by this url:
www.mysite.com/page1.html
Would directing my "domain name" to the server space www.mysite.com/forum/ do the trick?
Thanks!
Welcome to WebmasterWorld!
> Would directing my "domain name" to the server space www.mysite.com/forum/ do the trick?
If you are using a control panel to administrate your site, then this would be the simplest way to do it.
If you have access to httpd.conf, you can define Document_Root as any folder you like.
And finally, if you have no other alternative, you could use mod_rewrite in .htaccess to do this internal rewrite, at some loss of efficiency compared to the other methods.
Jim