schimpfk Posted May 20, 2013 Share 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! Quote Link to comment Share on other sites More sharing options...
Gourlaykid Posted May 20, 2013 Share Posted May 20, 2013 You would use .htaccess for this. DirectoryIndex main.php will set the start page to main.php Quote Link to comment Share on other sites More sharing options...
schimpfk Posted May 21, 2013 Author Share 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? Quote Link to comment Share on other sites More sharing options...
Ice IT Support Posted May 21, 2013 Share Posted May 21, 2013 Create a file named .htaccess in your public_html directory. You would place that line of text in that file. Quote Link to comment Share on other sites More sharing options...
schimpfk Posted May 21, 2013 Author Share 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! Quote Link to comment Share on other sites More sharing options...
Shinryuu Posted May 21, 2013 Share 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. Quote Link to comment Share on other sites More sharing options...
schimpfk Posted May 22, 2013 Author Share 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. Quote Link to comment Share on other sites More sharing options...
Piotr GRD Posted May 22, 2013 Share 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. Quote Link to comment Share on other sites More sharing options...
schimpfk Posted May 23, 2013 Author Share Posted May 23, 2013 None of you guys are helping!!!Again,I just need to know how to change the main page! Quote Link to comment Share on other sites More sharing options...
Krydos Posted May 24, 2013 Share 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. Quote Link to comment Share on other sites More sharing options...
schimpfk Posted May 24, 2013 Author Share 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! Quote Link to comment Share on other sites More sharing options...
Ice IT Support Posted May 24, 2013 Share 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 Quote Link to comment Share on other sites More sharing options...
niagara Posted May 27, 2013 Share 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. Quote Link to comment Share on other sites More sharing options...
schimpfk Posted June 1, 2013 Author Share Posted June 1, 2013 Mr.Moderator,When I try making a file called: .htaccessIt says that it already exists but it does not! Quote Link to comment Share on other sites More sharing options...
Krydos Posted June 1, 2013 Share 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.