My cakephp 2.2 site not working on subdomain
Asked Answered
D

0

1

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

Doctrinaire answered 2/12, 2013 at 12:41 Comment(4)
Can you give us more detail about the problem? Both for our understanding and the long term value of your question.Wendeline
You don't need two of the three htaccess files, only the webroot one. Then use vhost setup to make it work. Also do that locally to be as close as possible to the real world there, as well.Ministry
i am remove first 2 htaccess file after then i have run this dev.vertaxtechnology.com/eventapp/admin url with admin prefix, it is given error 404 error (Not found).Doctrinaire
The only thing you should need to worry about changing is your webroot/index.php to make sure it's pointing to the correct filesBabbittry

© 2022 - 2024 — McMap. All rights reserved.