"/popular?f=unread " how ?

Discussion in 'PHP' started by mab, Feb 11, 2008.

  1. #1
    Hello ..
    my question is simple and i think its done with .htacess ..
    is /popular?f=unread the same /popular.php?f=unread
    ?
    if it is how can i make it like this ?
    Thank you .
     
    mab, Feb 11, 2008 IP
  2. ToddMicheau

    ToddMicheau Active Member

    Messages:
    183
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #2
    I think you might want to look into CodeIgniter, it's a php framework that allows you to pass variables without naming scripts, as well as other things.

    http://codeigniter.com/

    But to answer your question /popular?f=unread is not the same as /popular.php?f=unread
     
    ToddMicheau, Feb 11, 2008 IP
    mab likes this.
  3. jnestor

    jnestor Peon

    Messages:
    133
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes you can do this with a simple mod_rewrite rule which you can place in your .htaccess file.

    RewriteEngine On
    RewriteRule ^popular$ popular.php [L]

    This will only redirect popular to popular.php. You can do a more general rule but it gets more complicated because you probably don't want to redirect everything in this way.
     
    jnestor, Feb 11, 2008 IP
    mab likes this.
  4. mab

    mab Active Member

    Messages:
    563
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #4
    Thank you a lot brothers .. Rep+ u2
     
    mab, Feb 12, 2008 IP