A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Uploadin with URL rewriting

  1. #1
    Junior Member
    Join Date
    Oct 2005
    Posts
    23

    Uploadin with URL rewriting

    Hi my friends;

    I want to upload via url rewriting.
    ex: /mydir/myUpload
    but it does not work.

    Everithing is correct if I'm using the direct path
    ex: /myDir/myUpload.php


    Does someone has an idea of how to make this work

    Thanks for you help!

  2. #2
    AS3 Mod
    Join Date
    Sep 2007
    Location
    O-H-I-O
    Posts
    2,385
    As long as your server knows how to handle that page then it should work.

    With that said is your URL rewrites setup properly in Apache / IIS?

  3. #3
    Junior Member
    Join Date
    Oct 2005
    Posts
    23
    thanks for your answer!

    Here my htaccess:

    SetEnv APPLICATION_ENV development

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]

    Is that correct?

  4. #4
    AS3 Mod
    Join Date
    Sep 2007
    Location
    O-H-I-O
    Posts
    2,385
    I have moved your thread to the scripting & backend area as this is not related to AS 3.0. Someone here should be able to assist.

  5. #5
    Senior Member
    Join Date
    Apr 2004
    Location
    LA
    Posts
    349
    I would recommend installing Firebug (a firefox plugin) and watching what requests actually get formed and how your browser responds.

    My mod_rewrite is a bit shakey, but it looks like you are checking to make sure the request is a file, symbolic link, or directory before applying the first rewrite rule which just replaces the entire request with a dash.

    Then the second rewrite rule looks like it replaces everything that escapes that first rule with plain old 'index.php'.
    Write multiplayer games with FlashMOG 0.3.1
    Try the MyPlan Salary Calculator

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center