Tema: htaccess /dir/dir
Autorius: Vytenis M.
Data: 2010-11-17 21:33:04
Sveiki,
public_html dire yra .htaccess failas su tokiu turiniu:

RewriteRule ([^/]*)/ index.php?id=$1 [L]
RewriteRule (.*) http://www.domain.com/$1/ [R=301,L]
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]

Atlieka: www.domain.com?id=6 iskaitoma is www.domain.com/6/

Daba turim kita sukurta (realu) dira www.domain.com/cars/ kokia .htaccess 
failo turini sukurti kad tasai
www.domain.com/cars/?id=6 vesrtu i www.domain.com/cars/6/?

Dabar kad cars diras butu aktyvus i .htaccess ivesta :
<IfModule mod_rewrite.c>
 RewriteEngine off
 </IfModule>


Aciu