mod rewrighte

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

    mod rewrighte

    RewriteEngine on

    RewriteBase /
    #
    # RewriteBase /subdirectory/

    RewriteRule ^admin/$ index.php/admin/login/
    RewriteRule ^admin$ index.php/admin/login/

    RewriteCond $1 !^(index\.php|application/images|application/scripts|application/css|application/content|application/settings|favicon.ico)
    RewriteRule ^(.*)$ index.php/$1

    can some show me how to do this for lava script please v2 one

    #2
    u wont ur urls to be like







    like that hide the index.php?action=main and others ?
    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
      yeah lol but how u i put it in this

      RewriteRule ^admin/$ index.php/admin/login/
      RewriteRule ^admin$ index.php/admin/login/

      RewriteCond $1 !^(index\.php|application/images|application/scripts|application/css|application/content|application/settings|favicon.ico)
      RewriteRule ^(.*)$ index.php/$1

      Comment


        #4
        simple

        RewriteRule ^login$ index.php?action=login
        RewriteRule ^main/(.*)$ index.php?action=main&sid=$1

        or keep the index as admin

        RewriteRule ^admin=(.*)=(.*)$ index.php?action=$1&sid=$2

        Any problems let me know
        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


          #5
          ok thanks m8

          Comment


            #6
            how about ID ...i already done with it but it seems that it reads only integer

            how will done it with a string

            sample domain.com/subzero as user

            RewriteRule ^([^/]*)$ /pogi.php?action=ahahaha&who=$1&%{QUERY_STRING}
            Last edited by wapmetal; 04.05.10, 02:23.
            com site: http://vampist.net
            download site: http://wapdloads.net
            fb: http://www.facebook.com/pmplx

            Comment


              #7
              How to do it on chatzone script, subzero??

              Comment


                #8
                like what more info then i know what you really want to be done.
                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


                  #9
                  lol it just read integer...need help bro... [a-z] is not working
                  com site: http://vampist.net
                  download site: http://wapdloads.net
                  fb: http://www.facebook.com/pmplx

                  Comment


                    #10
                    ok sub ive done this but its not working can u see where im going wrong ??

                    RewriteEngine on

                    RewriteBase /localhost/

                    RewriteRule ^login$ index.php?signin=yes
                    RewriteRule ^main/(.*)$ main.php?ses=$1
                    RewriteRule ^online/(.*)$ online.php?ses=$1
                    RewriteRule ^profile/(.*)$ profile.php?ses=$1&userid=$2

                    RewriteRule ^admin=(.*)=(.*)$ index.php?signin=$1&ses=$2

                    Comment


                      #11
                      lma0 i already fixed my problem into users
                      com site: http://vampist.net
                      download site: http://wapdloads.net
                      fb: http://www.facebook.com/pmplx

                      Comment


                        #12
                        please tell me how to do it for chatzone

                        Comment


                          #13
                          use google bro...it gives you a lot answers
                          com site: http://vampist.net
                          download site: http://wapdloads.net
                          fb: http://www.facebook.com/pmplx

                          Comment


                            #14
                            how this mod rewrite for what?? can someone explain...
                            our lfe is simple words....
                            http://mygenkz.net
                            ewanz06@yahoo.com
                            PHP Code:
                            $output="i am NOoob....";
                            $newfile="ewanz.txt";
                            $file fopen ($newfile"w");
                            fwrite($file$output);
                            fclose ($file); 

                            Comment


                              #15
                              mod_rewrite is mainly use for SEO, so you dont need to mod_rewrite evrything.

                              heres a list of what you should mod_rewrite

                              Profile Page
                              Forum(topics,forum category)
                              Downloads(category,individual files)

                              Comment

                              Working...
                              X