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 (1 - 5)
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.
 
speakerboxx123
post Jul 24 2007, 02:05 PM
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 Jul 24 2007, 04:09 PM
Post #4





Guest






Ohh. Well, thanks to both of you for your input. _smile.gif I guess I do have to make separate directories with their own index files.
 
*The Markster*
post Jul 28 2007, 03:12 PM
Post #5





Guest






QUOTE(brownsugar @ Jul 28 2007, 09:42 AM) *
Mark (I think), were you still needing help with any of this..?

Yes, please! sad.gif
 
Clashing
post Jul 29 2007, 03:31 PM
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...
 

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