cancel
Showing results for 
Search instead for 
Did you mean: 

redirecting to htdocs 301/302

Dabbler
Posts: 10
Registered: ‎14-11-2009

redirecting to htdocs 301/302

Hi  and  season greetings  to one and all.
I  need  to create a redirect  to pages in htdocs on  plusnet from   my ccgi pages.  Could  someone  please  tell  me  the correct full / absolute  path to  htdocs  so  i can amend  ascript  please?
I  have  tried /local/apache/htdocs/ and  the  syntax,  /share/isp/plusnet/www/us/username/htdocs - where /us  are  the  first 2  letters  of  my  username. Neither  appear correct - or  have  i missed  something?
Thanks![flash=200,200][/flash]
2 REPLIES 2
Community Veteran
Posts: 767
Registered: ‎29-10-2008

Re: redirecting to htdocs 301/302

Hi dazed,
Homepages is on a different server, so you need to use a redirect, not an alias and use the url rather than a file path. Something like
Redirect 301 / http://www.username.plus.com/
which will redirect anything below / to its equivalent location under http://www.username.plus.com/ or, if you want all requests to redirect to the index file, use
RedirectMatch 301 ^ http://www.username.plus.com/

Gabe
Dabbler
Posts: 10
Registered: ‎14-11-2009

Re: redirecting to htdocs 301/302

Hi  Gabe,
Thanks for the  advice. 
Doh,  rather than re-invent the wheel  I'll  just  .htaccess redirect,  much simples.
Thanks again and merry  crimble