Hi All,

I have setup my new php site and try to redirect in index.php. I am getting this error "redirection limit for this url is exceeded"in firefox browser and other browsers are showing page not found.

how can i avoid this problem...Help me..!!!

Thanks,
Sharma

    What's the filename that's redirecting to index.php, and what is the code?

      Thank you loganK

      file name is login.php

      code is

      if ($randuser)
      {
      
      
      
      	header("Location: /$randuser/");
      }

        try
        header ("location : $randuser);

          HI,

          That results in pure parse error. Even i tried diffrent combinations. It surely some thing to do with Mod_rewrite module of apache..

          Thanks for Help..

          Sharma

            could you show us sample value of your $randuser

              Could you also put the " that jansky accidentally left out back in?

                $randusername...
                sometimes ..

                username1
                username2,
                username3,
                ...so on

                Well into history...

                I am trying to create a MLM website. This site will provide the users their website virtually. www.mysite.com/username/ . The back of the site is same as any other php. where the url will show up his username at the end of url.

                This is the objective behind coding this. After much googled what i found is its not related to php. its some thing related to APACHE mod_rewrite module..

                Weedpacket.. I corrected that error.. and no help to me..

                Thanks,
                Sharma

                  Yes, what it looks like you want is to work with mod_rewrite to process the URL variables. Other than that, it looks like your code will work just fine, as long as you set mod_rewrite to rewrite the URL to webserver.com/?randuser=username.

                    Hi,

                    How do i do That? Where can I look for that module on My Linux machine..or Apache server..

                    Any ideas.. towards changing mod_reqrite..

                    Sharma

                      Write a Reply...