Search the forums. Key phrases either "search engine friendly URLs" or "URL rewriting". I'm sure you can think of variations.

    for the second type of link you dont need any url rewriting/ search engine friendly....

    assuming that index.php is your default file, then just use something like

    <?php
    
    echo "Id passed is: ".$_GET['ps_id'];
    
    ?>

    http://localhost/database/post/edit/?ps_id=1071915
    or
    http://localhost/database/post/edit/index.php?ps_id=1071915

    if you have this in something like xyz.php which is not your directory default file, then you can access it only via http://localhost/database/post/edit/xyz.php?ps_id=1071915

      yes, the default file will execute, which normally should be index.php unless you overrride the name/ given some other preference order

        ok.... well that link appears to work, so what is the prob?

          But this is not my site link where i am working. I need to do work like this link on my site. I have no idea how i do this.

          Can u help me?

            Originally posted by qadeer_ahmad
            but the problem on this link

            http://localhost/browse/post/1071915

            is still remain.

            quoting weed...

            Search the forums. Key phrases either "search engine friendly URLs" or "URL rewriting". I'm sure you can think of variations.

              Thanks Weedpacket as ur help i got a page where i think my problem is solved but i need some help to understand it. Page is

              http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html

              In this page i read this paragraph

              //-------------------------------------------------------------------------//
              Some servers will not have » mod_rewrite enabled by default. As long as the » module is present in the installation, you can enable it simply by starting a .htaccess file with the command

              RewriteEngine on

              Put this .htaccess file in your root so that rewriting is enabled throughout your site. You only need to write this line once per .htaccess file.
              //-------------------------------------------------------------------------//

              Question is.
              as .htaccess file calls in any .htpasswd . Is thier any need to call this file in any other file?

              on the above link under this heading "Using Regular Expressions"
              this command is exactly what i needed but i can not understand it how can i use this line in my php scripting.

              RewriteRule products/([0-9][0-9])/$ productinfo.php?prodID=$1

              Please see above link and guid me. Its very important to me to do this work. Thanks

                Write a Reply...