Closed Thread
Results 1 to 7 of 7

Thread: .htaccess MOD REWRITE

  1. #1
    DarkDragonLord's Avatar
    DarkDragonLord is offline x10 Elder DarkDragonLord is an unknown quantity at this point
    Join Date
    Mar 2007
    Location
    Brazil
    Posts
    782

    .htaccess MOD REWRITE

    Hello everyone!


    Well, i need urgent a mod rewrite rule to my .htaccess!

    So, instead of my link be:
    http://www.raphaelddl.com/index.php?...n&ports=videos
    (Index using language English > Portfolio > Videos)

    i want to be something near this:
    www.raphaelddl.com/en/portfolio/videos



    But one thing you must consider, since my website is multi language, my links always something like this:
    PHP Code:
    <?php
    $default 
    'en';
    if (isset(
    $_GET['lang']))
    echo 
    './main_'.$_GET['lang'].'.html';
    else
    echo 
    $default;
    ?>
    This way it checks the lang array.

    Even with mod rewrite, this will work?

    Thanks

    i'll pay credits for you
    maybe something like 100 or near
    Edit:
    .
    .
    So, anyone know how make that? I'm kinda too busy with php to try make myself
    Last edited by DarkDragonLord; 11-29-2007 at 11:55 AM. Reason: Automerged Doublepost
    Regards,
    Raphael DDL

    Designing Solutions for You
    *Web Design;
    *Coding;
    Free Downloads;
    and all related Stuff
    .


    My Tutorials:
    | Multi-Language Websites | Rotative Banners |
    | Bookmark Script for All Browsers
    |
    |
    PHP Switching/Including Content|
    |


  2. #2
    Slothie's Avatar
    Slothie is offline Lord Of The Keys Slothie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Singapore
    Posts
    1,432

    Re: .htaccess MOD REWRITE

    Code:
    Options +FollowSymLinks
    RewriteEngine on
    
    RewriteRule /ddl/(.*)/lang/(.*)/ports/(.*)\.html index.php?ddl=$1&lang=$2&ports=$3
    Almost what you want :P Not quite as its much longer but I'm too lazy to think much more.

    Easiest 70 points you'll make on x10

    Feel free to add my reputation by clicking on the if you found my post helpful to you :P


    If I am not responding to your PMs, that means I am ignoring you. Take a hint.



    09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0


  3. #3
    DarkDragonLord's Avatar
    DarkDragonLord is offline x10 Elder DarkDragonLord is an unknown quantity at this point
    Join Date
    Mar 2007
    Location
    Brazil
    Posts
    782

    Re: .htaccess MOD REWRITE

    Quote Originally Posted by Slothie View Post
    Code:
    Options +FollowSymLinks
    RewriteEngine on
    
    RewriteRule /ddl/(.*)/lang/(.*)/ports/(.*)\.html index.php?ddl=$1&lang=$2&ports=$3
    Almost what you want :P Not quite as its much longer but I'm too lazy to think much more.
    xDDD
    i'll test here, if works and be what i want, i'll send the credits to you ^^
    Edit:
    .
    .
    .
    .


    did not worked :S

    it just made the index.php hidden

    now link is:
    http://raphaelddl.com/?ddl=portfolio...n&ports=videos
    Edit:
    .
    .
    .
    no help T_T??
    i'll pay more for that then :S
    Last edited by DarkDragonLord; 11-30-2007 at 10:44 AM. Reason: Automerged Doublepost
    Regards,
    Raphael DDL

    Designing Solutions for You
    *Web Design;
    *Coding;
    Free Downloads;
    and all related Stuff
    .


    My Tutorials:
    | Multi-Language Websites | Rotative Banners |
    | Bookmark Script for All Browsers
    |
    |
    PHP Switching/Including Content|
    |


  4. #4
    DarkDragonLord's Avatar
    DarkDragonLord is offline x10 Elder DarkDragonLord is an unknown quantity at this point
    Join Date
    Mar 2007
    Location
    Brazil
    Posts
    782

    Re: .htaccess MOD REWRITE

    .
    .
    .
    im still willing to pay someone to do that for me.
    and about 250 or more
    Regards,
    Raphael DDL

    Designing Solutions for You
    *Web Design;
    *Coding;
    Free Downloads;
    and all related Stuff
    .


    My Tutorials:
    | Multi-Language Websites | Rotative Banners |
    | Bookmark Script for All Browsers
    |
    |
    PHP Switching/Including Content|
    |


  5. #5
    Slothie's Avatar
    Slothie is offline Lord Of The Keys Slothie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Singapore
    Posts
    1,432

    Re: .htaccess MOD REWRITE

    http://raphaelddl.com/ddl/portfolio/...ts/videos.html

    it should look something like that.

    Easiest 70 points you'll make on x10

    Feel free to add my reputation by clicking on the if you found my post helpful to you :P


    If I am not responding to your PMs, that means I am ignoring you. Take a hint.



    09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0


  6. #6
    hieufpt156 is offline x10Hosting Member hieufpt156 is an unknown quantity at this point
    Join Date
    Apr 2011
    Posts
    19

    Re: .htaccess MOD REWRITE

    I don't know make rewrite URL sel by .htaccess
    .htacess file had supported on X10hosting sever however i can not make rewrite URL by .htacess to my web please all members on the rum help me
    my web address: http://actw.x10.mx/ or http://actwindow.com.vn
    example:root part as http://actw.x10.mx/?thamso=xuat_sanpham&id_menu=2 and now i want replace by http://actw.x10.mx/cua-mo-tu-dong or http://actw.x10.mx/product/1.htm etc..
    thanks all my friends

  7. #7
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,998

    Re: .htaccess MOD REWRITE

    Topic closed, this topic is 3 years old -and- you failed to follow the rules of the section as no offer was made for credit-based payment.


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

Closed Thread

Similar Threads

  1. Se puede usar .htaccess????
    By rackfenix in forum Soporte
    Replies: 7
    Last Post: 10-02-2007, 07:03 PM
  2. default .htaccess
    By Fedlerner in forum Computers & Technology
    Replies: 9
    Last Post: 09-05-2007, 09:10 PM
  3. .htaccess rewrite condition question.
    By lambada in forum Scripts & 3rd Party Apps
    Replies: 1
    Last Post: 01-20-2007, 10:33 AM
  4. .htaccess rewrite rule
    By theblazingangel in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 03-03-2006, 11:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers