Jump to content

Recommended Posts

Posted
You would use .htaccess for this.
 DirectoryIndex main.php 

will set the start page to main.php

 

Where is this: htaccess???

Or How do you use it?

Posted

Create a file named .htaccess in your public_html directory. You would place that line of text in that file.

Posted
Create a file named .htaccess in your public_html directory. You would place that line of text in that file.

 

 

It's says: "File cannot be made in ............. file already exists" but it does not already exist!

Posted

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.

Posted
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.

Posted

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.

Posted

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.

Posted

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
Posted
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.

Posted

Any file that starts with a dot (.) is a hidden file so it might not show up unless you use an FTP client or make sure the check box to show hidden files is checked when opening the cPanel file manager.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...