0
votes

I have uploaded cakephp files on windows server,

I got an error HTTP Error 404.0 - Not Found for all below pages.

http://exoticvoyages.ntechinfo.com/index/index
http://exoticvoyages.ntechinfo.com/index/search
http://exoticvoyages.ntechinfo.com/index/getcountry
http://exoticvoyages.ntechinfo.com/countries/index

But, if i redirect all above pages to http://exoticvoyages.ntechinfo.com/ then its working fine.

Main .htaccess file is

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

App .htaccess file is

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

Webroot .htaccess file is

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /app/webroot/
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

Can anyone give me solution?

2
what is the default route in route.phpDipesh Parmar
Router::connect('/', array('controller' => 'countries', 'action' => 'index')); Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display')); CakePlugin::routes(); require CAKE . 'Config' . DS . 'routes.php';Jimesh Gajera
exoticvoyages.ntechinfo.com/countries/index must work but you mentioned its not working at top of your question and other are wrong they must be like indexes not just index.Dipesh Parmar
see my answer if its help..Dipesh Parmar
No, I created IndexController without using model like $uses = array();Jimesh Gajera

2 Answers

0
votes

check for the Rewritebase .

take a look, and also here.

Hope this will solve it.