Zadejte hledaný výraz...

Prestashop – DirectoryIndex

Dinan
verified
rating uzivatele
(7 hodnocení)
7. 10. 2013 13:45:06
Ahoj,
zas něco dali v práci kompetentní osobě a tak potřebuji vás:)
Máme eshop na prestashopu a nyní si vymysleli, že na hlavní straně má být rozcestník. Ten mám hotový uvod.htm no a v prestě jsou zapnuty "hezké url". Myslel jsem, že vše vyřeším jednoduše:
DirectoryIndex uvod.html index.php
To mi ale nejde, protože rozcestník směruje příchozí buď na náš eshop něco.cz nebo na katalog na jiné doméně. Pokud klikne na náš eshop (http://www.neco.cz) tak mu tam skáče ten rozcestník. Chyba je někde v .htaccess zřejmě a proto ho sem přikládám.
# .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
RewriteCond %{HTTP_HOST} ^prodejna.neco.cz$
RewriteCond %{REQUEST_URI} !^/subdom/prodejna/
RewriteRule (.*) /subdom/prodejna/$1
RewriteCond %{HTTP_HOST} ^webmail.neco.cz$
RewriteCond %{REQUEST_URI} !^/subdom/webmail/
RewriteRule (.*) /subdom/webmail/$1
# URL rewriting module activation
RewriteEngine on
# URL rewriting rules
RewriteRule ^(+)-(+)(-*)/*.jpg$ /img/p/$1-$2$3.jpg
RewriteRule ^(+)-(+)/*.jpg$ /img/p/$1-$2.jpg
RewriteRule ^()(-*)?/*.jpg$ /img/p/$1/$1$2.jpg
RewriteRule ^()()(-*)?/*.jpg$ /img/p/$1/$2/$1$2$3.jpg
RewriteRule ^()()()(-*)?/*.jpg$ /img/p/$1/$2/$3/$1$2$3$4.jpg
RewriteRule ^()()()()(-*)?/*.jpg$ /img/p/$1/$2/$3/$4/$1$2$3$4$5.jpg
RewriteRule ^()()()()()(-*)?/*.jpg$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg
RewriteRule ^()()()()()()(-*)?/*.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg
RewriteRule ^()()()()()()()(-*)?/*.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8.jpg
RewriteRule ^()()()()()()()()(-*)?/*.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg
RewriteRule ^c/(+)(-*)/*.jpg$ /img/c/$1$2.jpg
RewriteRule ^c/(+)/+.jpg$ /img/c/$1.jpg
RewriteRule ^(+)(-*)/*.jpg$ /img/c/$1$2.jpg
RewriteRule ^(+)-*.html /product.php?id_product=$1
RewriteRule ^*/(+)-*.html /product.php?id_product=$1
RewriteRule ^(+)-*(/*)+ /category.php?id_category=$1&noredirect=1
RewriteRule ^(+)-* /category.php?id_category=$1
RewriteRule ^(+)__(*) /supplier.php?id_supplier=$1
RewriteRule ^(+)_(*) /manufacturer.php?id_manufacturer=$1
RewriteRule ^content/(+)-(*) /cms.php?id_cms=$1
RewriteRule ^content/category/(+)-(*) /cms.php?id_cms_category=$1
RewriteRule ^page-not-found$ /404.php
RewriteRule ^address$ /address.php
RewriteRule ^addresses$ /addresses.php
RewriteRule ^authentication$ /authentication.php
RewriteRule ^best-sales$ /best-sales.php
RewriteRule ^cart$ /cart.php
RewriteRule ^contact-us$ /contact-form.php
RewriteRule ^discount$ /discount.php
RewriteRule ^guest-tracking$ /guest-tracking.php
RewriteRule ^order-history$ /history.php
RewriteRule ^identity$ /identity.php
RewriteRule ^manufacturers$ /manufacturer.php
RewriteRule ^my-account$ /my-account.php
RewriteRule ^new-products$ /new-products.php
RewriteRule ^order$ /order.php
RewriteRule ^order-follow$ /order-follow.php
RewriteRule ^quick-order$ /order-opc.php
RewriteRule ^order-slip$ /order-slip.php
RewriteRule ^password-recovery$ /password.php
RewriteRule ^prices-drop$ /prices-drop.php
RewriteRule ^search$ /search.php
RewriteRule ^sitemap$ /sitemap.php
RewriteRule ^stores$ /stores.php
RewriteRule ^supplier$ /supplier.php
# Catch 404 errors
ErrorDocument 404 /404.php
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"
FileETag INode MTime Size
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
Jde to nějak (i nepěkně) vyřešit bez nutnosti přesouvat celý eshop do podadresáře?
Moc děkuji za nápady
7. 10. 2013 13:45:06
https://webtrh.cz/diskuse/prestashop-directoryindex/#reply953303
Pro odpověď se přihlašte.
Přihlásit