lesfolies76 Posted December 11, 2010 Share Posted December 11, 2010 Hi,I have just moved my prestashop 1.3.1 from my development server on a 1and1 hosting.Having the friendly url on, i can't see any of the images from the shop, and for each page of the produtcs i get the error: page not availableIf i switch friendly url off, it work fine. So i think the problem is in the htaccess. I read all the post in the forum and tried everything, but with no result.My htaccess is :AddType x-mapp-php5 .phpDirectoryIndex home.php# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution# http://www.prestashop.com - http://www.prestashop.com/forums# URL rewriting module activationRewriteEngine onRewriteBase /RewriteCond %{HTTP_HOST} ^www.xxxxxx.com$ [NC]RewriteRule ^(.*)$ http://xxxxx.com/$1 [R=301,L]# URL rewriting rulesRewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L,E]RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2.jpg [L,E]RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [L,E]RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang;=$1$5 [L,E]RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang;=$1$4 [L,E]RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang;=$1 [QSA,L,E]RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E]RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]RewriteRule ^lang-([a-z]{2})/(.*)$ /$2?isolang=$1 [QSA,L,E]RewriteRule ^ddm-settings.xml$ /ddm-settings.php [QSA,L,E]RewriteRule ^nrwc-settings.xml$ /nrwc-settings.php [QSA,L,E]RewriteRule ^news.xml$ /news_gen.php [QSA,L,E]RewriteRule ^home-cont-(us|uk|eu)-(main|left|right|center).xml$ /main_data.php?location=$1&position;=$2 [QSA,L,E]RewriteRule ^images/home-([0-9]+).jpg$ /get_home_image.php?id=$1 [QSA,L,E]# Catch 404 errorsErrorDocument 404 /404.phpAnyone else had the same experience with 1and1 ?What else can be that do not make it work ?Thanks in advanceAndrea Link to comment Share on other sites More sharing options...
tomerg3 Posted December 12, 2010 Share Posted December 12, 2010 1 and 1 is one of the worse hosting companies I know (tied with godaddy).My first suggestion is get a different host (run if you can).I have seen it work with friendly URLs before, and the htaccess looks fine, but just to be sure, try one without any modification, just let PS create it, and add the AddType x-mapp-php5 .php line at the top Link to comment Share on other sites More sharing options...
lesfolies76 Posted December 13, 2010 Author Share Posted December 13, 2010 I tried also without modification, but seem that it do not understand the RewritRule of PS Link to comment Share on other sites More sharing options...
RhythmsOfSilence Posted December 13, 2010 Share Posted December 13, 2010 Facing same problem with 1&1;'(.My Hosting Details are: Linux Hosting with Apache.Server Software : CentOS 5 with Plesk 9 (64-bit)Website is http://www.electronicsgalaxy.co.ukAny Suggesstions will be Life Saving....... :'(Thanks. Link to comment Share on other sites More sharing options...
RhythmsOfSilence Posted December 15, 2010 Share Posted December 15, 2010 HiCould any one suggest a good hosting package / company that handles Search Engine Friendly URL Rewriting.At the moment I am with 1&1;and when I enable URL rewriting, it slows the website to death.Any help will be much appreciated. My site URL is http://www.electronicsgalaxy.co.uk. Link to comment Share on other sites More sharing options...
Yann - Prestaplugins Posted December 20, 2010 Share Posted December 20, 2010 Try removing this line : AddType x-mapp-php5 .phpI have a 1and1 hosting too, and i don't need it.If i put it into htaccess file, nothing works anymore. 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