I have added a standard zend project into a directory off the root on a shared host. I created a subdomain sub1 that is forwarded to the sub1 folder just below ther root.
The rewrite rules seem to be working in the .htaccess file located in the
/sub1/public folder.
SetEnv APPLICATION_ENV testing
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
When I enter sub1.main.com on the browser url line, my index.php page to the project is loaded correctly.
However, any type of request from a view script such as an anchor tag or dojo JavaScript requests are prefixed with www.main.com. I need it to prefix to be sub1.main.com. When it's www.main.com/app/index it gives me a page not found error. If I run from the browser url input field it load correctly
Is this a mod_rewrite (.htaccess) change or a Zend Bootstrapping issue?