My cakephp 2.2 site not working on subdomain

╄→尐↘猪︶ㄣ 提交于 2019-12-11 06:29:56

问题


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

来源:https://stackoverflow.com/questions/20328636/my-cakephp-2-2-site-not-working-on-subdomain

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!