Skip to content

Commit

Permalink
Document rewrite rules for PaaS solutions
Browse files Browse the repository at this point in the history
- Added documentation for additional .htaccess lines you may need when
  on some PaaS platforms that use Apache Alias directives (phpcloud,
  OpenShift, others).
  • Loading branch information
weierophinney committed Jan 4, 2013
1 parent f5ffb00 commit baefcaa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions public/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
# If you are using phpcloud.com or other cloud PaaS solutions, you may need to
# Remove the line immediately above this comment, and uncomment the following:
# RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::\2$
# RewriteRule ^(.*)$ - [E=BASE:%1]
# RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]

0 comments on commit baefcaa

Please sign in to comment.