Hey guys im trying to rewrite my URLs and to be aloud to use PATH_INFO.

basically as of right now im having trouble with POST array NOT WORKING

i have DirectoryIndex index.php but i dont want to be showing index.php all the time in the URL in order to for PATH_INFO to be recognized

so www.domain.com/index.php/gallery would be www.domain.com/gallery and PATH_INFO will still be recognized.

any clue? or em i approaching this the wrong way?

    RewriteEngine On
    RewriteRule .* index.php

    You'll need to use your own mechanism to parse the URL's.

    No, you not approaching it the wrong way. The Zend Framework uses this route for it's router.

      Kudose;10883517 wrote:
      RewriteEngine On
      RewriteRule .* index.php

      You'll need to use your own mechanism to parse the URL's.

      No, you not approaching it the wrong way. The Zend Framework uses this route for it's router.

      Thanks for the reply i tried that also.

      maybe you can help me on this: i got working by doing
      RewriteRule grab(.*) /index.php/$1

      but i need grab to be in the url still defeats the purpose. trying figure a way i tried doing (.) or (.) so it grabs whatever is after domain.com/$1

      but i cant seem to figure how to grab the string after domai.com/$1

      $1 being the string.

      .* seems to not pickup anything? which i figured it should right?

      if i do (.*) index.php/$1 i get internal server error.

        Kudose;10883523 wrote:

        Try (.*)$ /index.php/$1

        still server error =( damn.

        Options +FollowSymlinks
        RewriteEngine on
        RewriteRule (.*)$ /index.php/$1

          Try

          RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule ^(.*)$ /index.php/$1 [QSA,NE,T=application/x-httpd-php,L]
            Kudose;10883534 wrote:

            Try

            RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteRule ^(.*)$ /index.php/$1 [QSA,NE,T=application/x-httpd-php,L]

            still INternal server error =(

              Kudose;10883534 wrote:

              Try

              RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
              RewriteCond %{REQUEST_FILENAME} !-d
              RewriteRule ^(.*)$ /index.php/$1 [QSA,NE,T=application/x-httpd-php,L]

              dude you rock i switched !-f and !-d since i figured !-f stands for file and you were doing Request_filename, thanks bro!!!! works.

                My bad. Glad you got it working.

                  Write a Reply...