.htaccess help ?

Discussion in 'PHP' started by Karacoder, Jun 29, 2007.

  1. #1
    ı'm not speak english. Very sorry :(

    htaccess .php to html making.
    but do problem.
    now categories url : site.com/kategori-Google-1.html .

    I'm this categories url will : site.com/kategori/Google make will

    I'm use :
    echo "<a href=kategori-" . $yaz['kat_baslik'] . "-" . $yaz['kat_id'] . ".html>" . $yaz['kat_baslik'] . "</a><br>";
    PHP:
    htacces ise
    RewriteRule ^kategori-(.*)-(.*).html$ katgoster.php?kat_id=$2&kategori=$1 [L,NC]
    PHP:
    --------------------------------------------------------

    article url: site.com/makale-5.html

    this site.com/categoriesname/articlename.html make will.
    .

    echo "<a href=makale-" . $yaz['makale_id']   . ".html>" . $yaz['makale_baslik'] . "</a><br>";
    PHP:
    RewriteRule ^makale-(.*).html$ makaleoku.php?makale_id=$1&makale=$2 [L,NC]
    
    PHP:
     
    Karacoder, Jun 29, 2007 IP
  2. Daudulus

    Daudulus Member

    Messages:
    73
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #2
    I don't understand what you exactly want. I would suggest to search for the term htacces via a search engine which searches in websites in your native language. I bet there will be plenty of tutorials about htacces in your language too.
     
    Daudulus, Jun 29, 2007 IP