Jump to content

Friendly URL and 404 errors


shaz

Recommended Posts

Hi

I have version 1.3.7.0 and I turned on friendly URL’s, generated the .htaccess file and now seem to have problems with 404 errors in stats and on homepage & one of them being favicon. I have checked my folder /img / favicon.ico and the file is there but it appears weird? see below:

h( @æßòÍ»éÌ·œàÝÁªä¶ÛÎïØÉî–„UÊÿ€OÉÿ€OÉÿ²•ÞéšgÙÒíkfÐþ€OÉÿ€OÉÿ€OÉÿ¡~×ýäÚó´yi´yçÙòéÿ›vÔû¬ŽÛÿ€OÉÿ€OÉÿ€OÉÿštÔÿœËÇ1¢o´y‡´yÿÙòéÿ¾éÚÿª‹Úÿ‘gÐÿ‰\ÌÿfÐÿ¤‡×ÿ¹çÖÿ´yI´y¢´yÿ´yÿ¾éÚÿœwÕÿƵæÿ÷äÿ·»Ûÿ¾éÚÿ´yÿ´y1´y½´yÿ´yÿ¨áÌÿœwÕÿ’Ú¿ÿ’Ú¿ÿ’Ú¿ÿ´yÿ´yþ´y´y×´yÿ´yÿ¨áÌÿ³¯Ûÿ!µ|ÿ´yÿ´yÿ´yÿ´yö±wœi´yð´yÿ´yÿ´yÿ´yÿ´yÿ´yÿ´yÿ´yÿ´yà®u´yü´yÿ´yÿ´yÿ´yÿ´yÿ´yÿ´yÿ´yÿ´yųx(´yÿ´yÿ´yÿ´yÿ´yÿ´yÿ´yÿ´yÿ´yÿ´yª´yC´yÿ´yÿ´yÿ´yÿ´yÿ´yÿ´yÿ´yÿ´yÿ´y´y]´yÿ´yÿ´yÿ´yÿ´yÿ´yÿ´yÿ´yÿ´yÿ´yu³x´y“´ye´y{´ys´y´y¨´yÜ´yÝ´yõ´yY´y!´yU´y/´yI±w±w´yE´yY´yc´ye´yþþìàààààÀÀÀÀÀÀó‘ø?

I would really appreciate some help on this as uptil I generated the friendly URL and .htaccess file my site was running great. It now spits out loads of 404’s, duplicate content (I have just generated a robots.txt file to try and stop getting loads of irrelevant stuff indexed) and I assume that all of my old content from my old site that is indexed will eventaully drop off google or follow the 404 redirect.

I have no experience in this sort of thing so would really appreciate some help on this. I have turned of the firndly URL's for now and my .htaccess file looks like this:

# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums

# 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$ /img/p/$1-$2$3.jpg [QSA,L,E]
RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2.jpg [QSA,L,E]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [QSA,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 [QSA,L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang;=$1$4 [QSA,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 [QSA,L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [QSA,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 errors
ErrorDocument 404 /404.php



Thanks in advance,would really appreciate some assistance.

Link to comment
Share on other sites

  • 3 months later...
  • 6 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...