View Full Version : how to direct front page
noodles
09-21-2006, 06:52 PM
Hi All,
Currently, i have one domain name maegabriel.com (http://www.maegabriel.com) and on that page i have my photoblog. I also have a foodblog (http://www.maegabriel.com/riceandnoodles) which is maegabriel.com/riceandnoodles.
I would like to have a front page (http://www.maegabriel.com/index.php?x=frontpage) [this is still work on progress] where if anybody comes to maegabriel.com, what you'll see is a page where i can put the two links ie, the photoblog and foodblog [they're both on pixelpost]. At the moment when you go to maegabriel.com, the photoblog is set to come up straightaway. Though i'm not very good with codes [my knowledge is very limited], i know that it has something to do with index.php. Now i've been trying to moderate it but it doesn't work. I have a back-up of course!
Please can somebody help me? What do i have to do?
MANY THANKS FOR THE HELP IN ADVANCE :)
codepoit
09-21-2006, 06:55 PM
In the root directory of maegabriel.com, you need to have an index.html which is just your splash page. What you will need to do is create a photoblog directory (domain.com/photoblog) and cut/paste your pixelpost files into that directory, just like how you have the foodblog now. That way, you'll have splash page with links to your two sites...domain.com/photoblog and domain.com/foodblog.
Try to put this "splash screen" into the index.html file and then put it into root dir of your webpage. If you have set static pages as first to look as default page then it will work otherwise you must change this setting or i.e. put pixelpost to subdir and then call it just like foodblog.
noodles
09-21-2006, 09:03 PM
Thanks codepoit! I'll have to think if this is what i'd really like to do. I mean doing the photoblog as sub dir.
GeoS, thanks!
Try to put this "splash screen" into the index.html file and then put it into root dir of your webpage. If you have set static pages as first to look as default page then it will work otherwise you must change this setting
I'm sorry but would you mind to kindly show me how to do the "splash screen" into the index.html?
Thanks again!
janickg
09-21-2006, 09:15 PM
A better and more elegant solution would be to redirect your default directory index using .htaccess
Do this in your .htaccess file
DirectoryIndex temp_splash_index.html
This means when anyone goes to http://yourdomain.com it will load whatever you've done in temp_splash_index.html
While you as the developer can simply continue to work with your index.html or index.php and test it, no one will be the none the wiser. Once you're done with testing and developing, you can remove that line in your .htaccess file.
Connie
09-22-2006, 06:00 AM
janicq,
if he does not understand GeoS answer, .htaccess would be too tricky I think
what GeoS wanted to suggest:
write an index.htm or index.htm
in this page, add links to Pixelpost and to the blog
in the Blog you can add a link to the startpage + to Pixelpost
in Pixelpost main page you can add a link to the startpage + to the Blog
that is fairly easy and needs no modification of any system parameters like editing .htaccess would be
never do simple things in a complicated way...
More or less I agree with Connie.
There is only small trick to janickg reply: some Apache servers have this DirectoryIndex directive set by default as:
DirectoryIndex index.html index.htm index.php index.cgi ...
So if there is also in your case it means that the most important filename which server will look for is on the left side (if it didnt find this then server is looking for next going to right side).
So there is enough to put this the most on right file name to root dir of site and then server sends it as default page for site visitors leaving the rest of files as they are without need of doing next subdirs and so on.
Other thing is also that default setting is more optimal for server working but that isnt so important as you dont host to many sites on your machine.
This what janickg suggest to you is doing this default DirecotryIndex setting on own hand with own priority of documents. It is useful when server have other order of files then you want or then you can accept.
I belive that not it is a little more clear then it was few post ago.
noodles
09-24-2006, 06:45 PM
Thanks everyone,
Connie, while your answer seems easy, i'm afraid it's still complicated to me. Sorry, it's me not you.
I have an index.php on my root directory. In it, has loads of codes about the page. I'm not sure how to add links to Pixelpost and to the blog. Ouch.
This has become too complicated for me. Like i've said, not you, but me.
Thanks for trying...
Connie
09-24-2006, 07:30 PM
noodles, don't be a noodle ;=)
you really think it is more complicated than it is unfortunately
you have one file "index.htm"
this has links to Pixelpost and to other things
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>This is my webpage</title>
</head>
<body>
<p>Watch my <a href="index.php">PixelPost Photoblog!</a> </p>
<p>Read my <a href="wp/index.php">WordPress Blog!</a> </p>
</body>
</html>
because in 99,78% the browser first opens files with the extension ".htm" or ".html" you can have an "index.htm" which links to "index.php" (your Pixelpost) in the same directory!
really not difficult
you can have
index.htm
index.html
index.php
in the same directory, but not 2 times index.php
janickg
09-25-2006, 01:10 PM
I think Connie was trying to tell you that you create that index.html in your root directory of your homepage, and have the contents of the created index.html (as Connie pointed out) -link to your other photoblogs / blogs.
Connie
09-25-2006, 01:43 PM
I tried, but I did not succeed unfortunately
I stay with potatoes ;=(
noodles
09-25-2006, 11:08 PM
Janickg, thanks for pointing out my obvious stupidity :)
Sorry, Connie. I don't blame you.
Ok, i'm now paying attention. Inhale, exhale.
paused...
Ok, i think i'm starting to get your point. I really didn't mean to be a pest. I'll try creating the index.html and point the pages.
I'll keep you posted :)
Thanks again.
noodles
09-25-2006, 11:29 PM
Hi Connie, Janickg & GeoS,
Thank you so very much. It worked!!!
Connie, you're a star! I owe you big time. It took a while for me to realise what you meant but i got there in the end and i thank you sincerely :)
Would you like to have a look (http://maegabriel.com)? It's still work in progress but am very happy with the result.
You are all brilliant!:wink:
Cool to see it working :)
Connie
09-26-2006, 06:25 AM
Hi noodles,
I am glad you got it! It's really not difficult, but everything needs a start.. so you can continue with both systems there
thanks for the compliments, but satisfaction is more than honor, and I am satisfied that it is working now! :)
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.