Website directories as pages?, Or whatever it is. :D |
Website directories as pages?, Or whatever it is. :D |
*The Markster* |
![]()
Post
#1
|
Guest ![]() |
So I've always wondered how some websites have separate directories as pages. (Virb.com, for instance.) See how each page is like "virb.com/about" and "virb.com/privacy," instead of "virb.com/about.php" or "virb.com/privacy.php"? The way I've been going about my own site navigation is by PHP GET variables. My pages are something like "the-markster.net/?x=blogs" and "the-markster.net/index.php?x=resources". So I'd appreciate any help or answers. Thanks.
![]() - - - - - - - Btw, about the Virb site, I've been guessing that they actually make separate directories with their own index files .. though I've also been thinking that there's an easier way to accomplish that. |
|
|
![]() |
![]()
Post
#2
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 371 Joined: Jun 2007 Member No: 530,773 ![]() |
you use index.php inside the folder of your content. for example, you have um, resources... simply make the folder named resources then a file inside that folder and name it index.php. that is your homepage for resources.
i don't know if that really answers your question... but just giving my thought. ohh, to use less files... you can use php includes. |
|
|
![]()
Post
#3
|
|
im with the marching band ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 740 Joined: Dec 2006 Member No: 491,167 ![]() |
i do the same thing as virb.com, its alot difficult though...
for example i have a tutorials page and i put: http://royal-edge.sour-cream.com/tutorials/index.php |
|
|
*The Markster* |
![]()
Post
#4
|
Guest ![]() |
Ohh. Well, thanks to both of you for your input.
![]() |
|
|
*The Markster* |
![]()
Post
#5
|
Guest ![]() |
|
|
|
![]()
Post
#6
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 371 Joined: Jun 2007 Member No: 530,773 ![]() |
What help do you need on?? Maybe, I could do in some way...
|
|
|
![]() ![]() |