https://github.com/caub/azer
some old php code
https://github.com/caub/azer
Last synced: over 1 year ago
JSON representation
some old php code
- Host: GitHub
- URL: https://github.com/caub/azer
- Owner: caub
- Created: 2016-06-18T21:18:40.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-18T21:18:52.000Z (about 10 years ago)
- Last Synced: 2025-01-28T02:11:12.198Z (over 1 year ago)
- Language: PHP
- Size: 67.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
azer
=======
minimal PHP framework
note:
You will need to set your webserver to redirect all request like "/myApp/foo/bar" to index.php
for ex with an Apache .htaccess in www/myApp/ folder:
RewriteEngine On
RewriteRule ^/?(javascript|css|img) - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
or in your apache sites-enabled config:
RewriteEngine On
RewriteRule ^/?myApp/(javascript|css|img) - [L,NC]
RewriteCond %{REQUEST_URI} ^/?myApp [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /myApp/index.php [L]
and finally, you also need to set your server to allow CORS, (ex on Apache http://enable-cors.org/server_apache.html)