hbhh Posted August 6, 2012 Share Posted August 6, 2012 (edited) Bonjour a tous, J'ai mon principal nom de domaine qui est www.machin.com et j'en ai créer un autre www.truc.com Il est situé comme ceci /truc/ dans le FTP. Je suis sous prestashop et lorsque j'accède sur le nouveau site (truc), je n'ai qu'un bout des css, le site ne ressemble à rien et est sans design. Voici mon fichier settings.inc <?php define('__PS_BASE_URI__', 'http://***.com/truc/'); define('_MEDIA_SERVER_1_', '_MEDIA_SERVER_1_'); define('_MEDIA_SERVER_2_', '_MEDIA_SERVER_2_'); define('_MEDIA_SERVER_3_', '_MEDIA_SERVER_3_'); define('_PS_CACHING_SYSTEM_', '_PS_CACHING_SYSTEM_'); define('_PS_CACHE_ENABLED_', '0'); define('_THEME_NAME_', 'prestashop'); define('_DB_NAME_', 'db0000'); define('_MYSQL_ENGINE_', '_MYSQL_ENGINE_'); define('_DB_SERVER_', 'db0000.db.1and1.com'); define('_DB_USER_', 'dbo0000'); define('_DB_PREFIX_', 'ps_'); define('_DB_PASSWD_', ''); define('_DB_TYPE_', 'MySQL'); define('_COOKIE_KEY_', 'Sn7yE5Rsbg6KGe64rt5fqgsqSrvWdLR3ggTLbvNt0YCvKyO5ZR5ivkRD'); define('_COOKIE_IV_', 'f7pahHMD'); define('_PS_CREATION_DATE_', '2012-08-05'); define('_PS_VERSION_', '1.4.8.3'); ?> VOICI MON FICHIER .htaccess: (généré par prestashop) # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # WARNING: PLEASE DO NOT MODIFY THIS FILE MANUALLY. IF NECESSARY, ADD YOUR SPECIFIC CONFIGURATION WITH THE HTACCESS GENERATOR IN BACK OFFICE # http://www.prestashop.com - http://www.prestashop.com/forums <IfModule mod_rewrite.c> # URL rewriting module activation RewriteEngine on # URL rewriting rules RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ http://cosmeto-natur...g/p/$1-$2$3.jpg [L] RewriteRule ^([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ http://cosmeto-natur...img/p/$1-$2.jpg [L] RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ http://cosmeto-natur...g/p/$1/$1$2.jpg [L] RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ http://cosmeto-natur...1/$2/$1$2$3.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ http://cosmeto-natur...$3/$1$2$3$4.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ http://cosmeto-natur.../$1$2$3$4$5.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ http://cosmeto-natur...1$2$3$4$5$6.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ http://cosmeto-natur...2$3$4$5$6$7.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ http://cosmeto-natur...3$4$5$6$7$8.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ http://cosmeto-natur...4$5$6$7$8$9.jpg [L] RewriteRule ^c/([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ http://cosmeto-natur.../img/c/$1$2.jpg [L] RewriteRule ^c/([a-zA-Z-]+)/[a-zA-Z0-9-]+\.jpg$ http://cosmeto-natur...al/img/c/$1.jpg [L] RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ http://cosmeto-natur.../img/c/$1$2.jpg [L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html http://cosmeto-natur...p?id_product=$1 [QSA,L] RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html http://cosmeto-natur...p?id_product=$1 [QSA,L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*(/[a-zA-Z0-9-]*)+ http://cosmeto-natur...$1&noredirect=1 [QSA,L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* http://cosmeto-natur...?id_category=$1 [QSA,L] RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) http://cosmeto-natur...?id_supplier=$1 [QSA,L] RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) http://cosmeto-natur...manufacturer=$1 [QSA,L] RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) http://cosmeto-natur...s.php?id_cms=$1 [QSA,L] RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) http://cosmeto-natur...cms_category=$1 [QSA,L] RewriteRule ^page-non-trouvee$ http://cosmeto-natur...Natural/404.php [QSA,L] RewriteRule ^adresse$ http://cosmeto-natur...ral/address.php [QSA,L] RewriteRule ^adresses$ http://cosmeto-natur...l/addresses.php [QSA,L] RewriteRule ^authentification$ http://cosmeto-natur...hentication.php [QSA,L] RewriteRule ^meilleures-ventes$ http://cosmeto-natur.../best-sales.php [QSA,L] RewriteRule ^panier$ http://cosmeto-natur...atural/cart.php [QSA,L] RewriteRule ^contactez-nous$ http://cosmeto-natur...ontact-form.php [QSA,L] RewriteRule ^bons-de-reduction$ http://cosmeto-natur...al/discount.php [QSA,L] RewriteRule ^suivi-commande-invite$ http://cosmeto-natur...st-tracking.php [QSA,L] RewriteRule ^historique-des-commandes$ http://cosmeto-natur...ral/history.php [QSA,L] RewriteRule ^identite$ http://cosmeto-natur...al/identity.php [QSA,L] RewriteRule ^fabricants$ http://cosmeto-natur...anufacturer.php [QSA,L] RewriteRule ^mon-compte$ http://cosmeto-natur.../my-account.php [QSA,L] RewriteRule ^nouveaux-produits$ http://cosmeto-natur...ew-products.php [QSA,L] RewriteRule ^commande$ http://cosmeto-natur...tural/order.php [QSA,L] RewriteRule ^details-de-la-commande$ http://cosmeto-natur...rder-follow.php [QSA,L] RewriteRule ^commande-rapide$ http://cosmeto-natur...l/order-opc.php [QSA,L] RewriteRule ^avoirs$ http://cosmeto-natur.../order-slip.php [QSA,L] RewriteRule ^mot-de-passe-oublie$ http://cosmeto-natur...al/password.php [QSA,L] RewriteRule ^promotions$ http://cosmeto-natur...prices-drop.php [QSA,L] RewriteRule ^recherche$ http://cosmeto-natur...ural/search.php [QSA,L] RewriteRule ^plan-du-site$ http://cosmeto-natur...ral/sitemap.php [QSA,L] RewriteRule ^magasins$ http://cosmeto-natur...ural/stores.php [QSA,L] RewriteRule ^fournisseurs$ http://cosmeto-natur...al/supplier.php [QSA,L] </IfModule> # Catch 404 errors ErrorDocument 404 http://cosmeto-natur...Natural/404.php <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" </IfModule> FileETag INode MTime Size <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript </IfModule> VOICI MON FICHIER index.php <?php include(dirname(__FILE__).'/config/config.inc.php'); if(intval(Configuration::get('PS_REWRITING_SETTINGS')) === 1) $rewrited_url = __PS_BASE_URI__; include(dirname(__FILE__).'/header.php'); $smarty->assign('HOOK_HOME', Module::hookExec('home')); $smarty->display(_PS_THEME_DIR_.'index.tpl'); include(dirname(__FILE__).'/footer.php'); ?> Savez-vous qu'elle peut etre le probleme? SVP pouvez vous m'aider? Merci, CN Edited July 17, 2013 by cosmeto-nature (see edit history) Link to comment Share on other sites More sharing options...
Mellow Posted August 7, 2012 Share Posted August 7, 2012 (edited) Bonjour, L'url www.truc.com pointe déjà vers le dossier /truc/ ou le site est installé. Alors dans settings.inc.php, PS_BASE_URI devrait être définie comme étant la racine du site : define('__PS_BASE_URI__', '/'); Avec ça, je pense que ça devrait mieux marcher... PS : Ne pas oublier de re générer le fichier .htaccess ! Edited November 5, 2012 by Mellow (see edit history) Link to comment Share on other sites More sharing options...
hbhh Posted August 7, 2012 Author Share Posted August 7, 2012 Oh là là !!! c'était tout bête ! Merci beaucoupppp!!! :wub: :wub: 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