1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Please help with WORDPRESS htaccess

Discussion in 'BlackHat Lounge' started by cm88529, Nov 9, 2013.

  1. cm88529

    cm88529 Registered Member

    Joined:
    Jun 19, 2013
    Messages:
    77
    Likes Received:
    5
    Formerly i created my website without WORDPRESS
    So three days ago i started redesigning my website
    with wordpress. But i have big problem with htaccess

    I want this link www dot xbizy dot com/welcome/universityyy/?tt=Bamiyan%20University

    to become this xbizy dot com/study/Bamiyan-University
     
  2. innozemec

    innozemec Jr. VIP Jr. VIP

    Joined:
    Aug 19, 2011
    Messages:
    5,290
    Likes Received:
    1,799
    Location:
    www.Indexification.com
    Home Page:
  3. cm88529

    cm88529 Registered Member

    Joined:
    Jun 19, 2013
    Messages:
    77
    Likes Received:
    5
    This is my php script

    <?phpinclude "../global.php"; ?>

    <?php

    $k = $_GET['c'];

    $result = mysql_query("SELECT * FROM uni WHERE country='$k' ORDER BY uni asc") ;
    echo "<div align='center'> <p><h1>List of universities in this country</h1></p>

    </div>";
    while($row = mysql_fetch_array( $result ))
    {

    $id = $row['id'];

    $name = $row['name'];
    $type = $row['continent'];
    $date = $row['date'];
    $country = $row['country'];
    $continent = $row['continent'];
    $uni = $row['uni'];

    echo "<title>$country</title>";
    echo
    "
    <p id='para1' >

    <a href='www dot xbizy dot com/welcome/universityyy/?tt=$id-".str_replace(" ","-",$uni)."'>$uni</a> <br>
    </p>

    ";

    }
    ?>
    I want to change this <a href='www dot xbizy dot com/welcome/universityyy/?tt=$id-".str_replace(" ","-",$uni)."'>$uni</a>
    to this www dot xbizy dot com/study/$id/$uni"
     
  4. innozemec

    innozemec Jr. VIP Jr. VIP

    Joined:
    Aug 19, 2011
    Messages:
    5,290
    Likes Received:
    1,799
    Location:
    www.Indexification.com
    Home Page:
    it doesn't matter what page it is.. the htaccess redirect code is the same for anything..

    if you want to change the way wordpress builds the permalinks in the php code is completely other thing..
     
  5. cm88529

    cm88529 Registered Member

    Joined:
    Jun 19, 2013
    Messages:
    77
    Likes Received:
    5
    Bro can you login into my wordpress and do this for me,i will be very grateful,i just started using wordpress 3 days ago.