Jump to content

Website Starts At Index.php But I Want It T Start On Main.php


Recommended Posts

We create one for you by default, it's what redirects your site to the queued page when you create your account, so it always exists unless you choose to delete it later on. It's a . file (dotfile) which is hidden in Linux, when you use the cPanel file manager you have a checkbox that allows you to view hidden files, click this before clicking the Ok button. You can also see all files hidden or otherwise using FTP.

Link to comment
Share on other sites

We create one for you by default, it's what redirects your site to the queued page when you create your account, so it always exists unless you choose to delete it later on. It's a . file (dotfile) which is hidden in Linux, when you use the cPanel file manager you have a checkbox that allows you to view hidden files, click this before clicking the Ok button. You can also see all files hidden or otherwise using FTP.

 

 

Not helping, I just need to know how to change the default page.

Link to comment
Share on other sites

Then add what Gourlaykid wrote you in the .htaccess file.

To see this file - either if you use cPanel file manager or any FTP client - you have to enable visibility of the hidden files - what Shinryuu wrote you about.

Link to comment
Share on other sites

Perhaps if you're not getting the answer you're looking for you should try to do a better job of asking your question. Maybe we will understand better if you rephrase or give an example of what you're trying to do.

Link to comment
Share on other sites

Follow these steps to change your home page to main.php:

  1. Login to cPanel
  2. Scroll down to the Files section and click on the File Manager icon (it says File Manager under it)
  3. A window pops up with options. Select the Web Root option, and check the Show Hidden Files (dotfiles) checkbox
  4. Click OK
  5. Create a file named main.php using the New File button in the top left corner of your screen (if it does not yet exist)
  6. Now look for a file named .htaccess If it does not exist, create it with the New File button
  7. Select your .htaccess file and click on Edit above
  8. In the window that opens, type (or paste)
    DirectoryIndex main.php


  9. Click Save Changes in the top right

Your site will now go to main.php instead of index.php

  • Like 1
Link to comment
Share on other sites

None of you guys are helping!!! Again, I just need to know how to change the main page!

Actually they are helping. What you mean is "thanks for helping, but I still don't understand how to implement this."

Just because YOU don't understand the solution doesn't mean it is incorrect.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...