Jump to content

forside - index.php virker ikke (error 404)


Mahave

Recommended Posts

Hej

 

Da jeg var igang med at generer en ny .htaccess-fil med url-omskrivning. Dette virkede dog ikke helt som det skulle. Så satte den tilbage til det den var før :)

 

Nu er problemet bare at forsiden (index.php) melder fejl og bliver sendt videre til error 404

 

Har prøvet at generer en ny .htaccess-fil - hjalp ikke.

Set om alle filerne er der - Ser ud til at alle filer er der.

 

Nogle der ved hvad der kunne være galt ?

Link to comment
Share on other sites

Virkede ikke :/

 

Her:

# .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 ^api/?(.*)$ /webservice/dispatcher.php?url=$1 [QSA,L]
</IfModule>
# Catch 404 errors
ErrorDocument 404 /404.php

Link to comment
Share on other sites

Er det alt, du har i din fil? For så er der bestemt noget galt. Går ud fra, at også har aktiveret de brugervenlige URL's og ikke kun genereret .htaccess - flueben på samme side, som du aktiverer htaccess? Hvor er du hostet?

 

Jeg har desværre ikke løsningen, men måske andre kan byde ind :-(

Link to comment
Share on other sites

Nej alt er slået fra..

det er hostet hos: cube-it.dk

 

Hvis "optimering" og "brugervenlig URL" er sat til ser .htaccess filen sådan her ud:

# .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 ^api/?(.*)$ /webservice/dispatcher.php?url=$1 [QSA,L]
RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1-$2$3.jpg [L]
RewriteRule ^([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1-$2.jpg [L]
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$1$2.jpg [L]
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$1$2$3.jpg [L]
RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$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$ /img/p/$1/$2/$3/$4/$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$ /img/p/$1/$2/$3/$4/$5/$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$ /img/p/$1/$2/$3/$4/$5/$6/$1$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$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$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$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg [L]
RewriteRule ^c/([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/c/$1$2.jpg [L]
RewriteRule ^c/([a-zA-Z-]+)/[a-zA-Z0-9-]+\.jpg$ /img/c/$1.jpg [L]
RewriteRule ^([a-z]{2})/[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$2&isolang=$1 [QSA,L]
RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$2&isolang=$1 [QSA,L]
RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]*(/[a-zA-Z0-9-]*)+ /category.php?id_category=$2&isolang=$1&noredirect=1 [QSA,L]
RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]* /category.php?id_category=$2&isolang=$1 [QSA,L]
RewriteRule ^([a-z]{2})/content/([0-9]+)\-[a-zA-Z0-9-]* /cms.php?isolang=$1&id_cms=$2 [QSA,L]
RewriteRule ^([a-z]{2})/content/category/([0-9]+)\-[a-zA-Z0-9-]* /cms.php?isolang=$1&id_cms_category=$2 [QSA,L]
RewriteRule ^([a-z]{2})/([0-9]+)__[a-zA-Z0-9-]* /supplier.php?isolang=$1&id_supplier=$2 [QSA,L]
RewriteRule ^([a-z]{2})/([0-9]+)_[a-zA-Z0-9-]* /manufacturer.php?isolang=$1&id_manufacturer=$2 [QSA,L]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/c/$1$2.jpg [L]
RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L]
RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L]
RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*(/[a-zA-Z0-9-]*)+ /category.php?id_category=$1&noredirect=1 [QSA,L]
RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /category.php?id_category=$1 [QSA,L]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) /supplier.php?id_supplier=$1 [QSA,L]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) /manufacturer.php?id_manufacturer=$1 [QSA,L]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms=$1 [QSA,L]
RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms_category=$1 [QSA,L]
RewriteRule ^en/page-not-found$ /404.php?isolang=en [QSA,L]
RewriteRule ^en/address$ /address.php?isolang=en [QSA,L]
RewriteRule ^en/addresses$ /addresses.php?isolang=en [QSA,L]
RewriteRule ^en/authentication$ /authentication.php?isolang=en [QSA,L]
RewriteRule ^en/best-sales$ /best-sales.php?isolang=en [QSA,L]
RewriteRule ^en/cart$ /cart.php?isolang=en [QSA,L]
RewriteRule ^en/contact-us$ /contact-form.php?isolang=en [QSA,L]
RewriteRule ^en/discount$ /discount.php?isolang=en [QSA,L]
RewriteRule ^en/guest-tracking$ /guest-tracking.php?isolang=en [QSA,L]
RewriteRule ^en/order-history$ /history.php?isolang=en [QSA,L]
RewriteRule ^en/identity$ /identity.php?isolang=en [QSA,L]
RewriteRule ^en/manufacturers$ /manufacturer.php?isolang=en [QSA,L]
RewriteRule ^en/my-account$ /my-account.php?isolang=en [QSA,L]
RewriteRule ^en/new-products$ /new-products.php?isolang=en [QSA,L]
RewriteRule ^en/order$ /order.php?isolang=en [QSA,L]
RewriteRule ^en/order-follow$ /order-follow.php?isolang=en [QSA,L]
RewriteRule ^en/quick-order$ /order-opc.php?isolang=en [QSA,L]
RewriteRule ^en/order-slip$ /order-slip.php?isolang=en [QSA,L]
RewriteRule ^en/password-recovery$ /password.php?isolang=en [QSA,L]
RewriteRule ^en/prices-drop$ /prices-drop.php?isolang=en [QSA,L]
RewriteRule ^en/search$ /search.php?isolang=en [QSA,L]
RewriteRule ^en/sitemap$ /sitemap.php?isolang=en [QSA,L]
RewriteRule ^en/stores$ /stores.php?isolang=en [QSA,L]
RewriteRule ^en/supplier$ /supplier.php?isolang=en [QSA,L]
RewriteRule ^en$ /en/ [QSA,L]
RewriteRule ^en/([^?&]*)$ /$1?isolang=en [QSA,L]
RewriteRule ^da/page-not-found$ /404.php?isolang=da [QSA,L]
RewriteRule ^da/address$ /address.php?isolang=da [QSA,L]
RewriteRule ^da/addresses$ /addresses.php?isolang=da [QSA,L]
RewriteRule ^da/authentication$ /authentication.php?isolang=da [QSA,L]
RewriteRule ^da/best-sales$ /best-sales.php?isolang=da [QSA,L]
RewriteRule ^da/cart$ /cart.php?isolang=da [QSA,L]
RewriteRule ^da/contact-us$ /contact-form.php?isolang=da [QSA,L]
RewriteRule ^da/discount$ /discount.php?isolang=da [QSA,L]
RewriteRule ^da/guest-tracking$ /guest-tracking.php?isolang=da [QSA,L]
RewriteRule ^da/order-history$ /history.php?isolang=da [QSA,L]
RewriteRule ^da/identity$ /identity.php?isolang=da [QSA,L]
RewriteRule ^da/manufacturers$ /manufacturer.php?isolang=da [QSA,L]
RewriteRule ^da/my-account$ /my-account.php?isolang=da [QSA,L]
RewriteRule ^da/new-products$ /new-products.php?isolang=da [QSA,L]
RewriteRule ^da/order$ /order.php?isolang=da [QSA,L]
RewriteRule ^da/order-follow$ /order-follow.php?isolang=da [QSA,L]
RewriteRule ^da/quick-order$ /order-opc.php?isolang=da [QSA,L]
RewriteRule ^da/order-slip$ /order-slip.php?isolang=da [QSA,L]
RewriteRule ^da/password-recovery$ /password.php?isolang=da [QSA,L]
RewriteRule ^da/prices-drop$ /prices-drop.php?isolang=da [QSA,L]
RewriteRule ^da/search$ /search.php?isolang=da [QSA,L]
RewriteRule ^da/sitemap$ /sitemap.php?isolang=da [QSA,L]
RewriteRule ^da/stores$ /stores.php?isolang=da [QSA,L]
RewriteRule ^da/supplier$ /supplier.php?isolang=da [QSA,L]
RewriteRule ^da$ /da/ [QSA,L]
RewriteRule ^da/([^?&]*)$ /$1?isolang=da [QSA,L]
</IfModule>
# Catch 404 errors
ErrorDocument 404 /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>

Link to comment
Share on other sites

Jeg fik løst mit :D....

 

Jeg updated engang til ved at følge denne guide:

http://www.prestashop.com/wiki/Installing_and_Updating_PrestaShop_software/

 

Men kørte du præcis samme version som Mahave? Det er så vidt jeg ved nyeste version, der findes. Den vejledning du linker til er fra 2008, der findes mange nyere vejledninger og i version 1.4.4 og frem ligger funktionen i BO, så man ikke manuelt skal opgradere, lave backup og flytte nær så mange filer.

 

Mahave, hvis du lige har installeret, kan du jo overveje en ny installation oveni med samme database. Dit webhotel opfylder vist det der kræves, ud fra dit skærmdump at dømme. Måske har du ved et uheld fået pillet i noget? Der er ikke noget i Bug Tracker om problemer med .htaccess, og det ville der helt sikkert være, hvis det var et generelt problem.

Link to comment
Share on other sites

ja det er så godt som en ny webshop.. Havde ellers lige fået sat næsten alt op som det skulle <_<

 

Vil prøve at installere det forfra med samme database imorgen. Håber det løser problemet ellers må jeg bare igang forfra med at sætte webshoppen op forfra :(

Link to comment
Share on other sites

  • 7 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...