0

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

Edited by zein1212

3
Contributors
2
Replies
15
Views
3 Years
Discussion Span
Last Post by guruparthi
0
RewriteEngine On
RewriteRule ^user/(.*)$ index.php?user=$1 [L]

Edited by pritaeas: Removed self-promotion link.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.