Htaccess rewrite help pls

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

    Htaccess rewrite help pls

    How to do this:
    Code:
    1)example.com/go/hi
    2)example.com/go/hi/hello
    
    becomes:
    
    1)example.com/?go=hi
    2)example.com/?go=hi/hello
    . . .etc
    but if there is a file like: example.com/go/hi/anyfile.jpg
    the file should open/download.pls help me.

    #2
    I use Zend Framework for a lot of time, and they have this kind of code

    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule .* index.php

    Through this, whatever the url is, it will be processed on main index.php
    Then you can treat it as you want!
    mysterio.al - programming is a functional art

    Comment


      #3
      Thanks,but it didnt work. But i solved my problem after a hour of search at google.

      Comment


        #4
        Originally posted by Sifat3d View Post
        Thanks,but it didnt work. But i solved my problem after a hour of search at google.
        I was not trying to solve your problem! I was trying to help you solve your own by understanding it!
        mysterio.al - programming is a functional art

        Comment


          #5
          This kind of topic have been solved already on coding-talk,please search before you post........

          Comment

          Working...
          X