Results 1 to 4 of 4

Thread: mod_rewrite

  1. #1


    I cannot get the rewrite rule correct...

    This is what I want:

    I want both of the following:

    To change to:

    Everything I try I just cannot get the original variables to pass...

  2. #2
    Join Date
    Dec 2003
    Kolkata, India
    You can do this using the ForceType method or mod_rewrite. mod_rewrite is a little more complex, but more powerful. Visit this link:
    hope it will help

  3. #3
    Join Date
    Apr 2003
    London, UK
    RewriteRule ^(.*)/file.php?foo=(.*) file.php?foo=$2&var=$1
    should work for the first, unless there's a subdomain created for the second, i don't think you'll be able to do that.

  4. #4
    I need the actual variable names and the variable's value to be passed along. Oh and file.php maynot always be file.php. Those are the main reasons I'm having such big problems iwth it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts