PDA

View Full Version : .htaccess redirects



gonzales
June 12th, 2005, 03:01 AM
hi all,

im wondering how to redirect traffic from a subfolder folder to my root. an example would be if a user went to: www.mysite.com the htaccess file would redirect them to: www.mysite.com/ver2

ive used redirects in .htaccess like this:
Redriect /new http://www.mysite.com

but that redirects to the root. so would i do something like this:

Redriect / http://www.mysite.com

OR

Redirect mysite.com http://www.mysite.com/ver2

?

thanks, yo.

hl
June 12th, 2005, 03:04 AM
http://www.kirupa.com/web/htaccess.htm

Jeff Wheeler
June 12th, 2005, 03:07 AM
Redriect / http://www.mysite.com/ver2

I think...

gonzales
June 12th, 2005, 03:09 AM
duh!!!
i forgot about that tutorial. thanks!

so just to make sure i could use:

DirectoryIndex /ver2/file.html

?