My cakephp 2.2 site not working on subdomain

2019-08-02 16:00发布

问题:

My cakephp 2x site working fine on my local machine.

But i have upload on sub domain server it is not working.

I want my cakephp site working on sub domain with admin Prefix

http://vertaxtechnology.com/ => is my domain

http://dev.vertaxtechnology.com/ = is my sub domain

http://dev.vertaxtechnology.com/eventapp = is my cake directory

This is my Root htaccess

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteBase /eventapp/ 
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>

This is my app htaccess

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteBase /eventapp/ 
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>

This is my webroot htaccess

<IfModule mod_rewrite.c>

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php [QSA,L]

</IfModule>

Please help thanks