Jump to content


Question


10 replies to this topic

#1 FFX

    Young Padawan

  • Members
  • Pip
  • 105 posts

Posted 11 July 2005 - 11:42 AM

I was wondering how some sites like this one do the sites as seperate folders.

for example.

If you wanted to go to portofolio.php

they have /portofolio.

I know you could easily make a new folder put the index.html or php and that would work but that's hard to maintain.

And also tutorials when they get accepted they go like www.pixel2life.com/counttutorial/thetutorial/

and im sure you dont make a new folder and the index file for each tutorial.

it also happens with affiliates.

So i was wondering if it is a CMS that's is downloadable or even a custom CMS ?

Thanks

#2 softLearner

    Young Padawan

  • Members
  • Pip
  • 128 posts

Posted 11 July 2005 - 12:19 PM

Yes you are right in saying that P2L doesn't create folders and puts an index.php file so it make sthe link like this: site.com/tutorals/php/1

What pixel2life is using is good tool called mod_rewrite

I havn't used this before and so I am unable to tell how to use it, but it requires you to right a small pice of code in a file called .htaccess

I last saw a tutorial for this in the HTML tips and tricks tutorial category on the main page here.

Good luck.

#3 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 11 July 2005 - 12:56 PM

No idea how good this is, but you can try looking here for more info
http://singapore.sourceforge.net/cvsdemo/x...ess.source.html

#4 FFX

    Young Padawan

  • Members
  • Pip
  • 105 posts

Posted 13 July 2005 - 10:14 AM

i just tried this thanks.

But this is only for like a image gallery.
Any more links ?

#5 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 13 July 2005 - 01:03 PM

It doesn't matter what its for... as long as it works and get's the point across. You should be able to modify it to suit your needs.

#6 FFX

    Young Padawan

  • Members
  • Pip
  • 105 posts

Posted 13 July 2005 - 02:07 PM

i can't because the script says i am not allowed in the copyright.

And i have no idea of making my own.

#7 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 13 July 2005 - 10:50 PM

technically, they can and can't copyright that. So basically, you're free to use it how you wish, and it's not possible for anybody else to know, as long as you dont re-distribute it.

Also, if you to afraid to change it, then google .htaccess and mod_rewrite (hell, search the php tutorial section of the main site, i swear to god i've seen this tutorial there before).

Edit:
http://www.pixel2life.com/tutorials/All/Al...&ss=mod_rewrite
I think i broke my finger trying to find this! You owe me!

#8 FFX

    Young Padawan

  • Members
  • Pip
  • 105 posts

Posted 14 July 2005 - 07:02 AM

thanks i did look but it was complicated on google not what i wanted.

I'm gonna try a few things, thanks for the help.

#9 Jaymz

    Retired P2L Staff

  • Members
  • PipPipPipPip
  • 4,104 posts

Posted 14 July 2005 - 09:24 AM

mod_rewrite is fickle, but once you get it working it's great :D

#10 MillerTime

    Young Padawan

  • Members
  • Pip
  • 69 posts

Posted 14 July 2005 - 11:11 PM

what would you say is easier and more efficient? the regular way or mod_rewrite

#11 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 15 July 2005 - 11:48 AM

The regular way.
It looks to me like mod_rewrite requires regular expressions, and a knowlage of .htaccess (not to much, but some). I'm not to sure about which is more efficent though.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users