schimpfk Posted May 20, 2013 Posted May 20, 2013 Our website starts on the page called: index.php but we want it to start on the page called: main.php but how do you that?Please help us!
Gourlaykid Posted May 20, 2013 Posted May 20, 2013 You would use .htaccess for this. DirectoryIndex main.php will set the start page to main.php
schimpfk Posted May 21, 2013 Author Posted May 21, 2013 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?
Ice IT Support Posted May 21, 2013 Posted May 21, 2013 Create a file named .htaccess in your public_html directory. You would place that line of text in that file.
schimpfk Posted May 21, 2013 Author Posted May 21, 2013 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!
Shinryuu Posted May 21, 2013 Posted May 21, 2013 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.
schimpfk Posted May 22, 2013 Author Posted May 22, 2013 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.
Piotr GRD Posted May 22, 2013 Posted May 22, 2013 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.
schimpfk Posted May 23, 2013 Author Posted May 23, 2013 None of you guys are helping!!!Again,I just need to know how to change the main page!
Krydos Posted May 24, 2013 Posted May 24, 2013 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.
schimpfk Posted May 24, 2013 Author Posted May 24, 2013 How Do I not make sense? Our site starts at index.php but we would like it to start on main.php!
Ice IT Support Posted May 24, 2013 Posted May 24, 2013 Follow these steps to change your home page to main.php:Login to cPanelScroll down to the Files section and click on the File Manager icon (it says File Manager under it)A window pops up with options. Select the Web Root option, and check the Show Hidden Files (dotfiles) checkboxClick OKCreate a file named main.php using the New File button in the top left corner of your screen (if it does not yet exist)Now look for a file named .htaccess If it does not exist, create it with the New File buttonSelect your .htaccess file and click on Edit aboveIn the window that opens, type (or paste) DirectoryIndex main.phpClick Save Changes in the top rightYour site will now go to main.php instead of index.php 1
niagara Posted May 27, 2013 Posted May 27, 2013 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.
schimpfk Posted June 1, 2013 Author Posted June 1, 2013 Mr.Moderator,When I try making a file called: .htaccessIt says that it already exists but it does not!
Krydos Posted June 1, 2013 Posted June 1, 2013 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now