I have tried to host the zf2 framework in a sub domain of my shared hosting server but it gave 404- not found error. This is my current file structure.
In-order to point it to the public folder, i used the following code in htaccess (which is placed in the root of the subdomain (abc)
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /abc/
RewriteCond %{REQUEST_URI} !/public [NC]
RewriteRule ^(.*)$ public/$1 [L]
if the main website is www.example.com
, I will be able to get my subdomain website as abc.example.com
Please advice..