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.
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.
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.
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
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.
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.
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.
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.
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.
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>
nobody mentioned using .htaccess open it and use the following line :
Redirect /olddirectory/oldfile.html http://yoursite.com/newdirectory/newfile.html
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 enginesOriginally Posted by Mythotical
why, oh why is nothing easy?![]()
Go the .htaccess way, works fine. my entire site is indexed by google and yahoo...
Allen
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 )