krzysiekkcn Posted June 5, 2013 Share Posted June 5, 2013 I'm trying to run my prestashop store, and It is almost complete, but the 404 page doesn't work. This link should work correctly: beta.wykladziny.pl/pagenotfound this one never works: beta.wykladziny.pl/thisshouldnotwork or beta.wykladziny.pl/aagaghs or even beta.wykladziny.pl/pagenotfound/ In my admin panel > preferences > seo&urls - confing seems to be default, but for sure, I've generated new htaccess file. I have no idea, how to fix this. I'm hope you can help me Thanks in advance. I think other files also have default code, but I'm attaching them below: 404.php header('HTTP/1.1 404 Not Found'); header('Status: 404 Not Found'); if (in_array(substr($_SERVER['REQUEST_URI'], -3), array('png', 'jpg', 'gif'))) { require_once(dirname(__FILE__).'/config/settings.inc.php'); header('Location: '.__PS_BASE_URI__.'img/404.gif'); exit; } elseif (in_array(substr($_SERVER['REQUEST_URI'], -3), array('.js', 'css'))) die(''); require_once(dirname(__FILE__).'/config/config.inc.php'); ControllerFactory::getController('PageNotFoundController')->run(); This file is requiring to settings, so. settings.inc.php d efine('__PS_BASE_URI__', '/'); define('_MEDIA_SERVER_1_', ''); define('_MEDIA_SERVER_2_', ''); define('_MEDIA_SERVER_3_', ''); define('_PS_CACHING_SYSTEM_', 'MCached'); define('_PS_CACHE_ENABLED_', '0'); ************ I have cutted some text there ************ define('_PS_VERSION_', '1.4.9.0'); Ok, so next one is my tpl file. <h1>{l s='Page not available'}</h1> <p class="error404"> <img src="{$img_dir}icon/error.png" alt="{l s='Error'}" class="middle" /> {l s='We\'re sorry, but the Web address you entered is no longer available'} </p> <h3>{l s='To find a product, please type its name in the field below'}</h3> <form action="{$link->getPageLink('search.php')}" method="get" class="std"> <fieldset> <p class="text"> <label for="search">{l s='Search our product catalog:'}</label> <input class="text" id="search_query" name="search_query" type="text" /> </p> <p class="submit"> <input type="submit" name="Submit" value="{l s='Search'}" class="page404_input button_small" /> </p> </fieldset> </form> <ul class="footer_links"> <li><a href="{$base_dir}" title="{l s='Home'}"><img src="{$img_dir}icon/home.png" alt="{l s='Home'}" class="icon" /></a><a href="{$base_dir}" title="{l s='Home'}">{l s='Home'}</a></li> </ul> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now