The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

setting new index as default homepage

Discussion in 'General Discussion' started by seinforma, Sep 8, 2012.

  1. seinforma

    seinforma Member

    Joined:
    Sep 8, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hello, I hope someone can help us out: we just renovated our website using web page maker and published all new pages. However, the home page still redirects to the former wordpress platform we used to use, although we have named the new one index too, and used similar names such as Index, index.html, but the default seinforma.ca is still stick to wordpress. How can we stop such redirection and set up our brand new index page as the default one?
    Website: seinforma.ca
    Old page (wordpress): /http://www.seinforma.ca/index
    New page is visible at: seinforma.ca/Index.html

    Any suggestions will be gladly appreciated. Thanks.
     
  2. monarobase

    monarobase Well-Known Member

    Joined:
    Jan 26, 2010
    Messages:
    503
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    France
    cPanel Access Level:
    Root Administrator
    Not sure this is in the correct forum…

    Have you tried removing the capital from "Index.html" => "index.html" ?
     
  3. tecsys

    tecsys Member

    Joined:
    Sep 9, 2012
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Nashik.India
    cPanel Access Level:
    Root Administrator
    Hello,

    What is your httpd.conf DirectoryIndex line ? Do you have index.php before index.html and also do you have index.php, index.html and Index.html in the same folder ?
     
  4. seinforma

    seinforma Member

    Joined:
    Sep 8, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Yes, we have
     
  5. seinforma

    seinforma Member

    Joined:
    Sep 8, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi Tecsys, thanks for replying.

    The files are in different folders this way:

    The index.php, which is the wordpress one, reads: application/x-httpd-php and is in the public_html/index folder.

    The new one is the public_html folder and reads: httpd/unix-directory
     
  6. monarobase

    monarobase Well-Known Member

    Joined:
    Jan 26, 2010
    Messages:
    503
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    France
    cPanel Access Level:
    Root Administrator
    What have you got in your .htaccess file ?
     
  7. seinforma

    seinforma Member

    Joined:
    Sep 8, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hello Monarobase, thanks for replying. We have this:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /index/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index/index.php [L]
    </IfModule>

    # END WordPress
     
  8. monarobase

    monarobase Well-Known Member

    Joined:
    Jan 26, 2010
    Messages:
    503
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    France
    cPanel Access Level:
    Root Administrator
    Try adding this to the beginning of your .htaccess file :

    Code:
    DirectoryIndex Index.html index.html index.php
    If this does not work, contact your web host, they should be able to help you out with this.
     
  9. seinforma

    seinforma Member

    Joined:
    Sep 8, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Thank you monarobase, I will try that way then. Cheers
     
Loading...

Share This Page