Jump to content
php.lv forumi

.htaccess


EdgarsK

Recommended Posts

Sveiki, vēlos izveidot .htaccess kurš darbotos pēc šāda principa

 

www.majaslapa.lv - darbojas index.php

www.majaslapa.lv/hosts - darbojas index.php?key=hosts

www.majaslapa.lv/hosts/redirect - darbojas index.php?key=hosts/redirect

www.majaslapa.lv/hosts/redirect/test - darbojas index.php?key=hosts/redirect/test

un ta talak..

 

Paldies jau iepriekš :)

Link to comment
Share on other sites

Ok tas prasija milzigu pacietibu , bet luuk arii atbilde

 

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php?key=$1 [L,QSA]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...