hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting : Hey server gurus, help with .htaccess file.
Reply

Forum Jump

Hey server gurus, help with .htaccess file.

Reply Post New Thread In Web Hosting Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-15-2005, 08:40 PM
jmwwht jmwwht is offline
Junior Guru Wannabe
 
Join Date: Aug 2005
Posts: 87

Hey server gurus, help with .htaccess file.


Hi experts. What exactly do I have to type in the .htaccess file to redirect www.mysite.com to www.mysite.com/forum for now. I have root access (VPS). I have tried the following but doesn't work.

redirect / http://www.mysite.com/forum
redirect www.mysite.com/forum
redirect www.mysite.com http://www.mysite.com/forum
redirect http://www.mysite.com http://www.mysite.com/forum

Yes, my host allows .htaccess files.

Thanks in advance!


Last edited by jmwwht; 08-15-2005 at 08:44 PM.


Sponsored Links
  #2  
Old 08-15-2005, 08:42 PM
voxio voxio is offline
Web Hosting Evangelist
 
Join Date: Jun 2004
Posts: 523

__________________
System Administrator

  #3  
Old 08-15-2005, 08:46 PM
Karthick Karthick is offline
Web Hosting Evangelist
 
Join Date: Aug 2004
Location: Sydney, Australia
Posts: 464
Try this:

Code:
DirectoryIndex index.html
Redirect /index.html http://www.mysite.com/forum/
Try putting a blank "index.html" file in your public_html directory if required.

__________________
Net Logistics Web Hosting - Solutions Through Innovation

Sponsored Links
  #4  
Old 08-15-2005, 08:57 PM
jmwwht jmwwht is offline
Junior Guru Wannabe
 
Join Date: Aug 2005
Posts: 87
Thanks Voidhosting and Karthick for your help! I followed the link of voidhosting http://www.javascriptkit.com/howto/htaccess6.shtml and found what I thought was the problem, then came Karthick and confirmed it. Yes, I tried

Redirect /index.htm http://www.myste.com/forum and it worked!

Problem solved! Thanks again guys!

Reply

Related posts from TheWhir.com
Title Type Date Posted


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?