This is my index.php

<?php 
            if(!isset($_GET["page"]) || $_GET["page"] == "home"){
                if(isset($_GET["txt"])){
                    include "search.php";
                }else{
                    include "content.php";
                }            
            }else if($_GET["page"] == "user" && $_GET["user"]){
                include "content_kategori.php"; 
            }else if($_GET["page"] == "kategori" && $_GET["kode"]){
                include "content_kategori.php"; 
            }else if($_GET["page"] == "full" && $_GET["kode"]){
                include "content_full.php"; 
            }else{}
        ?>

and this is my .htacces

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on

RewriteRule /user/(.*)\ index.php?user=$1
</IfModule>

rewrite Input URL http://localhost/teuing/user/index.php?user=zein
Example Output http://localhost/teuing/user/zein

But rewrite not work

RewriteEngine On
RewriteRule ^user/(.*)$ index.php?user=$1 [L]
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.