Results 1 to 14 of 14

Thread: Making Index.php my start page.

  1. #1
    Join Date
    Oct 2001
    Posts
    18

    Default Making Index.php my start page.

    How do i make the index.php my homepage. Right now it is back in the index3 directory....and I have to go to

    http://www.myhomepage.com/index3/index.php to read it.....i want it to come up when i just type in my web address.

  2. #2
    Join Date
    Sep 2001
    Posts
    180

    Default

    you have to move all the files and folders from the index3 directory to your root directory www.yoursite.com . Also you might have ro run the setup again.

  3. #3
    Join Date
    Oct 2001
    Posts
    18

    Default

    So in other words there will not be any index3 folder at all? Also will the index.php run once the domain is typed in? doesn't it have to be index.html

  4. #4
    Join Date
    Aug 2001
    Posts
    14

    Default

    You set up the default page that will come up for your domain on the webserver. You can call it anything you want. You just have to set the page on the server or in the case that you don't host your own site, you will have to ask your webhost to do so for you.

  5. #5
    Join Date
    Sep 2001
    Posts
    61

    Default

    Most webservers are setup to look for Index.html when you type your domain name. You can call your webserver company and ask them to setup your server to look for index.php. I would try that first before calling, it may be setup already.

    Since all your files are in http://www.myhomepage.com/index3/index.php you can just setup a redirect option to redirect users to /index3/index.php when they type your site domain.
    That way you save your self time instead of moving all the files and running setup again.

    Thanks.

  6. #6
    Join Date
    Aug 2001
    Posts
    14

    Default

    tariqali has probably the best interim solution. Set up a spash page welcoming your visitors that will automatically redirect after 4-5 seconds to your portal.

    This is a good idea for a couple of reasons. 1) you won't have to adjust your site parameters, and; 2) you can put the meta info into that page for search engines that don't spider php yet.

    Best of both worlds.

  7. #7
    Join Date
    Sep 2001
    Posts
    61

    Default

    If you want the best solution specially for search engines is copy your index.php to a plain html page and make it your start page. It is good to have the content of your site on the first page since some search engine like google will look at your site content and not the meta-tags.

    I am against welcome page "sorry Kevin" because people looking for information right a way. They do not care about welcome page or fancy flash introduction. It may look cool for the first time but it is annoying after that.

    Imagin how many people only visit the first page and only stay for few seconds and leave. The number of these people will increase if you have a welcome page.

  8. #8
    Join Date
    Aug 2001
    Location
    Antwerp, Belgium.
    Posts
    13

    Default

    Actually most servers first look for index.html, if they can't find it, they look for index.htm, index.php, index.php3, default.htm...

    So really there is no direct need for a index.htm/l in most cases.

    Also splash screens are evil especially with search engines... They don't like redirects and will most likely not spider your pages. Also placing meta files or hidden content only on a page with no other relevant information will do you more harm than good as spiders WILL NOT index it.
    Last edited by jvv; 10-21-2001 at 06:14 AM.

  9. #9
    Join Date
    May 2002
    Posts
    5

    Default

    Just copy following HTML code on to notepad document and replace the part typed in red colour to reflect where your Indexu is installed ie. www.yourdomain.com/folder1/index.php
    Then save it as index.html (make sure your change file type to All*.* in your notepad SAVE AS prompt)

    Upload index.html your root directory. Your are done. In this way you do not have move all your indexu files to anywhere. You caleave all your exsiting settings as they are.

    --------------------------------------------
    <html>

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>New Page 1</title>
    </head>

    <frameset framespacing="0" border="0" frameborder="0" rows="*">
    <frame name="top" scrolling="auto" noresize src="http://www.ENTER YOUR INDEXU MAIN FOLDER PATH HERE">
    <noframes>
    <body>

    <p>You can add lots of keyword and pharases here to improve your ranking in the search engines. Anything you type here will not visible to anyone unless their browser does not supprot framed pages but all this text is visible to search engine robots. Whatever you do please [b]DO NOT USE A REFRESH META TAG [b] in this page. Refresh Tag will instantly dismiss your link from all major search engines.
    http://www.sbeselect.com
    <p>

    </body>
    </noframes>
    </frameset>

    </html>

  10. #10
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    nobody mentioned using .htaccess open it and use the following line :

    Redirect /olddirectory/oldfile.html http://yoursite.com/newdirectory/newfile.html

  11. #11
    Join Date
    Nov 2004
    Posts
    71

    Default

    Most servers look for index.html first, if not found, they look for index.php so if you have no index.html then its a guarentee index.php will be your start page. .htaccess is good but a majority of servers don't support it for redirect as I have found out.

  12. #12
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    Quote Originally Posted by Mythotical
    Most servers look for index.html first, if not found, they look for index.php so if you have no index.html then its a guarentee index.php will be your start page. .htaccess is good but a majority of servers don't support it for redirect as I have found out.
    thats true but dosent help when you have installed indexU in a directory... htaccess is one of the only ways of moving the visitor without taking a big hit on the search engines. The methods above (splashscreen, frames, meta refresh) all cause problems with search engines

    why, oh why is nothing easy?

  13. #13
    Join Date
    Jul 2002
    Location
    California
    Posts
    57

    Default

    Go the .htaccess way, works fine. my entire site is indexed by google and yahoo...

    Allen

  14. #14
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    Ok, just a follow up on a problem I found using htaccess as I did above :

    Becuase i said a specific pahe (index.htm) search engines consider this to be the only page in that directory. When they come to look at the other pages they will not look in the subfolder but will look outside it, and all they will get is error 404s. They will only index 1 page, and any ABSOLUTE urls you have on that page (urls thta include your subfolder)

    Also redirect / www.yoursite/yourfolder will cause a loop so you cannot use that either.

    Only way I found is to use a rewrite rule like this :

    RewriteCond %{REQUEST_URI} !directory
    RewriteRule (.*) directory/$1 [QSA]

    and dont call any file the same name as your directory else you will get a loop.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

Similar Threads

  1. what does it mean ?
    By lewisw in forum v5.x
    Replies: 10
    Last Post: 08-29-2003, 02:05 AM
  2. Replies: 1
    Last Post: 08-19-2003, 08:40 AM
  3. Replies: 3
    Last Post: 08-14-2003, 10:11 AM
  4. Replies: 3
    Last Post: 06-27-2003, 08:54 AM
  5. Replies: 3
    Last Post: 01-10-2002, 10:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •