need help on static url

Discussion in 'Apache' started by indianherbcare, Jan 18, 2007.

  1. #1
    I'm trying to create url like domain.com/user1/

    someone helped with .htaccess file and I get this:

    Options +Indexes
    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /
    RewriteRule ^(.*)/(.*)/$ list_details.php?name=$2&id=$1 [L]

    it makes the url like this:

    domain.com/1/FIRSTNAME LASTNAME

    I want to create domain.com/FirstInitialLastname

    also how can we make sure some folders are kept I mean I have /imaages/ forum etc folder on root.

    thanks for your help
     
    indianherbcare, Jan 18, 2007 IP
  2. blfast

    blfast Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    RewriteRule ^(.)(.*)/$ list_details.php?lastname=$2&firstinitial=$1 [L]
     
    blfast, Jan 26, 2007 IP