Mod URL rewrite Help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Mod URL rewrite Help

    Hello friends,
    I am trying to change my site url using mod url rewrite. Please help me.

    My original url: somesite.com/games/index.php?id=2342&default=240x320&type=java&d=gl

    Mod URL should: somesite.com/games/2342/240x320/java/gl

    Is it possible?

    If possible please help.

    Thanks

    #2
    Basic Url rewrite
    Code:
    RewriteEngine on
    RewriteRule ^fileone.html$ filetwo.html
    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
    Visit: WapMasterz Coming Back Soon!
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


      #3
      I made this on your example. You can validate with regex even more if you want/can.

      RewriteEngine on
      RewriteRule ^(\w*)/([0-9]*)/(\w*)/(\w*)/([a-z]){2}$ $1/index.php?id=$2&default=$3&type=$4&d=$5
      Last edited by i0nutzxp; 29.04.12, 06:17.
      <?php unlink('World/Europe/Romania.country'); ?>

      Comment


        #4
        Originally posted by i0nutzxp View Post
        I made this on your example. You can validate with regex even more if you want/can.

        RewriteEngine on
        RewriteRule ^(\w*)/([0-9]*)/(\w*)/(\w*)/([a-z]){2}$ $1/index.php?id=$2&default=$3&type=$4&d=$5
        Thanks it worked

        Comment


          #5
          Where to write this code? On .htaccess file or what?

          Comment


            #6
            Plz anyone help. Or give the link of mod rewrite tutorial

            Comment


              #7
              Originally posted by Rocky01 View Post
              Plz anyone help. Or give the link of mod rewrite tutorial
              Easy Mod Rewrite : mod_rewrite tutorial

              mod_rewrite: A Beginner's Guide to URL Rewriting Article - SitePoint

              htaccess And mod_rewrite Tutorial

              A Simple mod_rewrite Tutorial: SEO-Friendly, Attractive URLs :: HTMList.com, A Web Development Blog by Synapse Studios


              is google really that hard to use?
              <?php
              include ('Ghost');
              if ($Post == true) {
              echo '

              sigpic
              alt='coding-talk.com!!' />';
              echo 'Sharing Is Caring!';
              } else {
              echo '

              alt='the username GHOST has been comprimised!' />';
              echo 'OMG SOMEBODY HELP ME!!';
              }
              ?>

              Comment


                #8
                Originally posted by Rocky01 View Post
                Plz anyone help. Or give the link of mod rewrite tutorial
                Easy Mod Rewrite : mod_rewrite tutorial

                Added after 3 minutes:

                LOL, I've put the link 1st :D but my net was disconnected, so it came after you :P
                BTW, the site is great
                Last edited by softwarefreak; 12.05.12, 12:56.
                I need some facebook likes, can you please help me
                http://facebook.com/softwarefreakin
                I noticed social media is really powerful
                Well DONE is better than well SAID

                Comment


                  #9
                  Originally posted by softwarefreak View Post
                  Easy Mod Rewrite : mod_rewrite tutorial

                  Added after 3 minutes:



                  LOL, I've put the link 1st :D but my net was disconnected, so it came after you :P
                  BTW, the site is great
                  a quick search of google lol. was first 4 on the list. i checked them firsts to see if any good. looked promising so i sent.

                  not sure why he didnt just use google instead himself rather than post asking for a location to a tut.

                  i should of been more cocky and a posted Google instead lol. ;)
                  <?php
                  include ('Ghost');
                  if ($Post == true) {
                  echo '

                  sigpic
                  alt='coding-talk.com!!' />';
                  echo 'Sharing Is Caring!';
                  } else {
                  echo '

                  alt='the username GHOST has been comprimised!' />';
                  echo 'OMG SOMEBODY HELP ME!!';
                  }
                  ?>

                  Comment

                  Working...
                  X