-
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!
-
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?
-
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?
-
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.
-
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'.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|