Redirect to subdomain

Discussion in 'HTML & Website Design' started by Fran, Mar 22, 2010.

  1. #1
    Hi,

    I've just successfully connected my Joomla to PHPBB3 and transferred the members over. I was going to install the fresh installation of PHPBB into the root directory, but some files may have been overwritten and I didn't want to mess anything up.

    So now I need to redirect my domain xxxxxxx.com to xxxxxxx.com/forum, keeping in mind xxxxxxx.com is a Joomla website.

    How would I do this?

    Thanks
     
    Fran, Mar 22, 2010 IP
  2. PsyHost

    PsyHost Well-Known Member

    Messages:
    641
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    110
    #2
    You no longer want anyone to be able to access mydomain.com but simply be redirected to mydomain.com/forum?
    If you are using cpanel you can set this up under the "redirects" option,
    If you are not, just create an index.php/html file in the root directory (the one that contains joomla) and add;
    
    html xmlns="http://www.w3.org/1999/xhtml">    
      <head>      
        <title>Redirecting...</title>      
        <meta http-equiv="refresh" content="0;URL='http://mydomain.com/forums/'" />    
      </head>    
      <body> 
    <h1>Redirecting</h1>
    </body>
    </html>     
    
    Code (markup):
     
    PsyHost, Mar 22, 2010 IP