Tema: Re: htaccess /dir/dir
Autorius: gopas
Data: 2010-11-17 23:05:41
RewriteEngine on
RewriteRule       ^cars/(.*)[/]?$    /cars/index.php?id=$1

berods taip.


"Vytenis M." <asfas@assadd.lt> wrote in message 
news:ic1alg$3ge$1@trimpas.omnitel.net...
> 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
>
>