Jump to content
php.lv forumi

lighttpd mod_rewrite


alfinsh

Recommended Posts

Tātad iekš lighttpd.conf aktivizēju mod_rewrite.Tālāk seko rindiņa

url.rewrite = ( "^(.*)/file(.*)" => "/lol/file.php" )

 

iegūstu no linka www.mana_adrese.lv/lol/file.php jauku smuku liknu www.mana_adrese.lv/file .. un te sākas problēma..

Linka www.mana_adrese.lv/file vietā varu izmantot arī www.mana_adrese.lv/file/bb/zz/dd/ff vai arī www.mana_adrese.lv/černobiļas_piestātne/file/ un nolasīs viņu kā

www.mana_adrese.lv/file..

 

Domājams ka rindai

url.rewrite = ( "^(.*)/file(.*)" => "/lol/file.php" )

jābūt savādākai tikai kādai ??? varbūt kāds no jums to zinās izskaidrot un pasniegt kādu piemēru

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...