Well i have solved it myself, here is the solution:

<?xml version="1.0" encoding="UTF-8"?>
<routes>
    <user>
        <type>Zend_Controller_Router_Route_Hostname</type>
        <route>:username.avidimages.net</route>
        <chains>
            <default>
                <type>Zend_Controller_Router_Route_Module</type>
                <abstract>On</abstract>
                <defaults>
                    <module>default</module>
                </defaults>
            </default>
            <pages>
                <route>pages/:url</route>
                <defaults>
                    <module>default</module>
                    <controller>pages</controller>
                    <action>view</action>
                </defaults>
            </pages>
        </chains>
    </user>
</routes>

-- 
View this message in context: 
http://n4.nabble.com/Zend-Router-with-Hostname-and-other-routes-tp1599492p1599597.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to