php - htaccess rules not routing properly on server (real file check) -



php - htaccess rules not routing properly on server (real file check) -

man.. i'm @ loss. have basic rewrite flow can't seem working. want check if real-file exists. if does, serve it, if doesn't, reroute php file. here's .htaccess file:

rewriteengine on rewritecond %{document_root}/application%{request_uri} !-f rewriterule ^(.*)$ core/index.php?f=%{document_root}/application%{request_uri} [qsa,l] rewriterule (.*) application/$1 [l]

my directory construction follows:

. ├── [drwxr-xr-x] application │   └── [-rw-r--r--] test.html ├── [drwxr-xr-x] core │   ├── [-rw-r--r--] index.php │   └── [drwxr-xr-x] tmp │   ├── [-rw-r--r--] httpd-access.log │   ├── [-rw-r--r--] httpd-error.log │   └── [-rw-r--r--] rewrite.log └── [-rw-r--r--] .htaccess 3 directories, 6 files

here permission appreciate help. thanks.

are sure apache has mod rewrite turned on?

php apache .htaccess routing

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -