Log In · Register

 
Website directories as pages?, Or whatever it is. :D
*The Markster*
post 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. _smile.gif

- - - - - - -

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.
 
 
Start new topic
Replies
Clashing
post 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.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: