Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

make folder as root?

Options
  • 04-07-2010 8:27pm
    #1
    Registered Users Posts: 8,070 ✭✭✭


    I set up my blog here
    www.iamjpg.com/love

    is it possible to make it so when people visit
    www.iamjpg.com it goes directly to /love

    without using php or javascript in a fake index.html
    dont want to move whole wordpress either


Comments

  • Registered Users Posts: 9,579 ✭✭✭Webmonkey


    Placebo wrote: »
    I set up my blog here
    www.iamjpg.com/love

    is it possible to make it so when people visit
    www.iamjpg.com it goes directly to /love

    without using php or javascript in a fake index.html
    dont want to move whole wordpress either
    You could use a ht access file if you using Apache

    .htaccess in root of iamjpg.
    Redirect / http://www.iamjpg.com/love/
    

    I think that's suppose be the most Search Engine Friendly.

    But a PHP can do a 301 direct as well:

    index.php:

    [php]<?
    header( "HTTP/1.1 301 Moved Permanently" );
    header( "Location: http://www.iamjpg.com/love/&quot; );
    ?> [/php]


  • Closed Accounts Posts: 264 ✭✭tc2010


    Your host might have very simple settings in there control panel to do this.

    Im with godaddy and this is easily done through there control panel

    I was struggling with the htaccess file because i was hosting 8 domains on the same server :pac: Had it sorted in 2 mins through the control panel


Advertisement