Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorGustavs
    • CommentTimeJul 10th 2006
     permalink
    I'm new to PHP, just started to learn it.
    Any who, I want to create a engine like cssBeauty has, that they don't have the ugly links like - cssbeauty.com/index.php?id=01 and so but they have - cssbeauty.com/home. I want to know, how do I create such script? I know I could just copy the files I want there, but I want it to be more automatic - so I can include header that does work (becouse the "../" needs to be added automaticly).

    I'm not sure if I have said it clear enough, but I hope.

    How can I do that?
    •  
      CommentAuthorJJenZz
    • CommentTimeJul 10th 2006
     permalink
    mod_rewrite (.htaccess) Here's how
  1.  permalink
    Having multiple variables passed through $_GET can be a pain if you are unfamiliar with regular expressions. If you're having trouble, you could post a list of the cases you want covered, like

    index.php?x=1&y=2&z=a => /1/2/a
    index.php?feed=rss&version=2 => /rss/2

    for example.
    •  
      CommentAuthorvuurvos
    • CommentTimeJul 11th 2006
     permalink
    •  
      CommentAuthorGustavs
    • CommentTimeJul 11th 2006
     permalink
    Thanks for the help!
Add your comments
    Username Password
  • Format comments as (Help)