replacing & and ? in php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hyper
    Confirmed User
    • Mar 2002
    • 5294

    #1

    replacing & and ? in php

    i know there are a few ways to replace ? and & in the url.
    whats the easiest way to do it for the search engines?
  • nxventures
    Confirmed User
    • Mar 2003
    • 574

    #2
    Do you mean the server side commands to format it like /blash/bhah/blah instead of the question mark and ampersand?
    SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.

    Comment

    • hyper
      Confirmed User
      • Mar 2002
      • 5294

      #3
      yeah. i think something to do with the path info command.. i dont wanna screw with the conf. files

      i had seen one article but it was so poorly written

      Comment

      • m4tt
        So Fucking Banned
        • May 2003
        • 384

        #4
        This what you're trying to do?

        http://www.desilva.biz/apache/rewritedir.html

        I've seen a much more detailed one but I can't find it at the moment

        Comment

        • berg.the.red
          Confirmed User
          • Feb 2003
          • 596

          #5
          use a URL Encoder
          Need a Dedicated Box with BALLS ?
          How about a Dedicated Server starting at just $49 per month.

          Comment

          • foe
            Confirmed User
            • May 2002
            • 5246

            #6
            php has a function urlencode ('string')
            outputs encoded url,

            php is the shit, if you need more help, contact me )

            Comment

            • ckm
              Registered User
              • Jul 2003
              • 15

              #7
              I use apache's ForceType to do this. The script looks like it is part of the path. If you don't want to mess with the conf files, put it in a .htaccess file. More info at http://www.devarticles.com/art/1/143/4

              Comment

              • zoic
                Registered User
                • Nov 2001
                • 84

                #8
                Stick this in your .htaccess -

                AcceptPathInfo On

                then you can invoke script.php like this -

                www.somedomain.com/script.php/param1/param2/etc


                Dave.

                Comment

                Working...