Website directories as pages?, Or whatever it is. :D |
Website directories as pages?, Or whatever it is. :D |
| *The Markster* |
Jul 24 2007, 04:24 AM
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. |
|
|
|
![]() |
Jul 24 2007, 11:29 AM
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. |
|
|
|
The Markster Website directories as pages? Jul 24 2007, 04:24 AM
_cheekz_ i do the same thing as virb.com, its alot difficul... Jul 24 2007, 02:05 PM
The Markster Ohh. Well, thanks to both of you for your input. ... Jul 24 2007, 04:09 PM
Clashing What help do you need on?? Maybe, I could do in so... Jul 29 2007, 03:31 PM![]() ![]() |