spinnyb Posted September 9, 2010 Share Posted September 9, 2010 Hi, I have looked through the forums and tried every option i could find but i cant get friendly urls working for my site. I have it working fine on other sites but for http:// it wont work. My .htaccess file is below:# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution# http://www.prestashop.com - http://www.prestashop.com/forums# URL rewriting module activationRewriteEngine on# 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]+)(\-[_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]# Catch 404 errorsErrorDocument 404 /404.phpI keep getting 404 errors for any friendly url. The images redirect ok however.I see plenty of people have had this problem in the past but none of their solutions work for me. Can anyone help?Thanks Link to comment Share on other sites More sharing options...
tomerg3 Posted September 9, 2010 Share Posted September 9, 2010 Are you sure this a linux server (and not windows)? Link to comment Share on other sites More sharing options...
spinnyb Posted September 9, 2010 Author Share Posted September 9, 2010 yeah. zeus hosting. the htaccess is being read alright as when i remove all entries in it - the frontpage images disappear and i dont get a 404 error Link to comment Share on other sites More sharing options...
tomerg3 Posted September 9, 2010 Share Posted September 9, 2010 That's odd, which host do you use? Link to comment Share on other sites More sharing options...
spinnyb Posted September 9, 2010 Author Share Posted September 9, 2010 register365. I am coming in to this project at the very end and was not involved in the initial setup. I looked at the log files but dont know enough about them to get any clues.see example below. some of the friendly urls were initially set up as single letters e.g. 'v' in the example below. but i have since changed these and no luck109.79.74.62 - - [08/Sep/2010:20:13:10 +0100] "GET /404.php HTTP/1.0" 200 0 "-" "-"109.79.74.62 - - [08/Sep/2010:20:13:10 +0100] "GET /53-v HTTP/1.1" 404 8688 "httpdresses" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDR; InfoPath.1;)"109.79.74.62 - - [08/Sep/2010:20:13:15 +0100] "POST /statistics.php HTTP/1.1" 200 200 "/53-v" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDR; InfoPath.1:)"109.79.74.62 - - [08/Sep/2010:20:13:14 +0100] "GET /404.php HTTP/1.0" 200 0 "-" "-"109.79.74.62 - - [08/Sep/2010:20:13:14 +0100] "GET /60-jackets HTTP/1.1" 404 8688 "http://53-v" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDR; InfoPath.1; )"1 Link to comment Share on other sites More sharing options...
tomerg3 Posted September 9, 2010 Share Posted September 9, 2010 I have not come across this before, and this log doesn't shed any more light on the subject. Link to comment Share on other sites More sharing options...
spinnyb Posted September 9, 2010 Author Share Posted September 9, 2010 Any htaccess experts see whats going wrong? Link to comment Share on other sites More sharing options...
Pixelpie Posted July 6, 2011 Share Posted July 6, 2011 Anyone fix this? With Register365 on the Zeus server. Link to comment Share on other sites More sharing options...
spinnyb Posted July 6, 2011 Author Share Posted July 6, 2011 Only fix is move away from Zeus server. I hosted my site on Blacknight and works perfectly. 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