Skip to content

Instantly share code, notes, and snippets.

@samsonasik
Created November 29, 2012 19:20
Show Gist options
  • Save samsonasik/4171219 to your computer and use it in GitHub Desktop.
Save samsonasik/4171219 to your computer and use it in GitHub Desktop.
set #zf2 in shared hosting ( .htaccess )
RewriteCond %{HTTP_HOST} ^yourdomain.com$ [NC,OR]
RewriteCond %{REQUEST_URI} !yourapp/public
RewriteRule (.*) /yourapp/public/$1 [L]
place it at your public_html (shared hosting 'root' directory ).
if you call http://yourdomain.com so you will point out to public_html/yourapp/public/index.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment