.htaccess redirect problem

.htaccess redirect problem

Posted by: wribbit
Posted on: 2007-07-21 14:22:00

Hi everyone,

I tried to create a .htaccess file for redirection.
I want everyone that goes to http://smf.ii-houdai.net to be redirected to http://101283.net

smf.ii-houdai.net resides in a directory /smf in the root folder.

so I created the .htaccess with the following line:

Redirect /home/my_user_name_here/smf http://101283.net/

Then, place the .htaccess in my home directory.
However, it doesn't seem to work..

Could anyone help point out what I'm doing wrong?

Re: .htaccess redirect problem

Posted by: sdayman
Posted on: 2007-07-21 14:35:00

Why didn't you create that sub-domain as a redirected domain, rather than a Fully Hosted domain?

-Scott

Re: .htaccess redirect problem

Posted by: monkeyboy7706
Posted on: 2007-07-21 14:37:00

Should it not just be

Redirect / http://101283.net/

with no directory specified.

More codes

Re: .htaccess redirect problem

Posted by: khatfield
Posted on: 2007-07-21 22:40:00

If you're redirecting say:
http://www.mydomain.com/smf

Then place the .htaccess inside of the mydomain.com directory. The .htaccess should look like:

Redirect /smf http://yoursite.com/

Re: .htaccess redirect problem

Posted by: wribbit
Posted on: 2007-07-25 02:13:00

Sorry for the late reply..

Thanks very much, I tried and it worked.

Finally figured out when those guides mentioned "home directory", it's referring to the web-accessible home directory of the site, and not the server ^^

Thanks everyone

Re: .htaccess redirect problem

Posted by: wribbit
Posted on: 2007-07-25 02:18:00

I think that won't work, coz the subdomain is the one that I want to direct to, and not the other way round?


Tags: htaccess redirecthtaccess filesmfroot folderredirectionhome directory