Keleth
07-27-2009, 08:47 PM
I was hoping I could get some help with a small problem.
I've been experimenting with making my own dispatcher, and I'm having trouble in some situations. When a folder exists that is the same as the requested URL, the server seems to first try to access the folder, then go for the dispatcher. When POST data is being sent, its first sent to the folder, then when its redirected to the dispatcher, the POST isn't also forwarded. I have DirectorySlash on, but it doesn't seem to help.
Here is my htaccess
DirectorySlash On
ErrorDocument 403 errors/403.php
ErrorDocument 404 errors/404.php
Options -Indexes +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_URI} !^.*/serverReturns/.*\.php$
RewriteCond %{REQUEST_URI} !^.*/commandControls/.*\.php$
RewriteCond %{REQUEST_URI} !^.*/test\.php$
RewriteRule !\.(css|jpg|js|gif)$ dispatch.php
For example, if someone tries to access /login, it goes to the login folder first, then to the dispatcher, by which time, the POST information is lost.
I've been experimenting with making my own dispatcher, and I'm having trouble in some situations. When a folder exists that is the same as the requested URL, the server seems to first try to access the folder, then go for the dispatcher. When POST data is being sent, its first sent to the folder, then when its redirected to the dispatcher, the POST isn't also forwarded. I have DirectorySlash on, but it doesn't seem to help.
Here is my htaccess
DirectorySlash On
ErrorDocument 403 errors/403.php
ErrorDocument 404 errors/404.php
Options -Indexes +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_URI} !^.*/serverReturns/.*\.php$
RewriteCond %{REQUEST_URI} !^.*/commandControls/.*\.php$
RewriteCond %{REQUEST_URI} !^.*/test\.php$
RewriteRule !\.(css|jpg|js|gif)$ dispatch.php
For example, if someone tries to access /login, it goes to the login folder first, then to the dispatcher, by which time, the POST information is lost.