Jump to content

.htaccess redirect from domain root to specific location?


fivestringsurf

Recommended Posts

I need to redirect using .htaccess.

 

when someone goes to

http://mysite.com or http://www.mysite.com

I need to reroute them to http://mysite.com/index/

 

I've been trying:

DirectoryIndex /index/
...and
Redirect 301 / http://localhost/mysite/index/

 

.htaccess is foreign to me and besides looking for this specific solution I would like to learn so if anyone has any good references/learning portals for beginners they recommend...that would be appreciated.  The manual at the apache site was pretty useless to me.  It was kinda like sending me to php.net as a way to "learn" -everything you need to know to learn people would say...uh no not for beginners without a masters degree in computer science!

 

Thanks for reading.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.