Forum Moderators: phranque

Message Too Old, No Replies

Full Redirect including SEO?

         

Reuben82

5:58 pm on Jun 6, 2005 (gmt 0)

10+ Year Member



This may be a simple quesiton, but I am far from knowing the answer =)

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!

jdMorgan

3:05 am on Jun 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Reuben82,

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