.htaccess - one page has more than one url. search engines give penalty please help me out -
I am using Prestashop as a cart for my site. I have a problem; Website is used in dynamic url. I enabled friendly URL writing. The problem is that one page has more than one URL, you can access the same URL from the dynamic url and static url. Actually there are 9 different URLs in one page. It clearly creates problems for SEO because search engines impose a penalty on my website for this.
What can I do to solve this problem? I have no knowledge of programming
Here is the HTAC for the website. . RewriteEngine RewriteRule ^ ([One-Z0-9] +) + - ([[A-Z0-9] +) - Replaced module activation on URL # Rewriting rules # One-z0- 9] +) (\ - [_ a-zA-Z0-9-] *) / ([_ a-zA-Z0-9-] *). Jpg $ /img/p/$1-$2$3.jpg [L, E] revised rules ^ ([0- 9] +) \ - ([0- 9] +) / ([_ a-zA-Z0-9 -] *). Jpg $ / img / p / $ 1- $ 2 Jpg [L, E] revised rules ^ ([0- 9] +) (\ - [_ a-zA-Z0-9-] *) / ([_ -zA-Z0-9 -] *). Jpg $ / img / c / $ 1 $ 2.jpg [L, E] revised rules ^ lang - ([AG] {2}) / ([a-zA-Z0-9 -] *) / ([0- 9] +) \ - ([one-zA-Z0-9 -] *). (. *) \ Html $ /product.php?id_product=$3&isolang=$1$5 [L, E] RewriteRule ^ Lang - ([az] {2}) / ([0- 9] +) \ - ( [A-zA-Z0-9 -] *). Html (. *) $ /product.php?id_product=$2&isolang=$1$4 [L, E] revised rule ^ lang - ([az] {2}) / ([0-9] +) \ - ( [A-zA-Z0-9 -] *) (. *) $ / Category.php? Id_category = $ 2 & amp; Isolang = $ 1 [QSA, L, E] rivaritium ^ ([a-zA-Z0-9 -] *) / ([0- 9] +) \ - ([a-zA-Z0-9-] *) . Html (. *) $ /product.php?id_product=$2$4 [L, E] revised rule ^ ([0- 9] +) \ - ([A-GA-Z-9-] *) \. HTML (. *) $ /product.php?id_product=$1$3 [L, E] revised rule ^ ([0- 9] +) \ - ([A-GAA-Z-9-] *) (. *) $ / Cat Egory.php? Id_category = $ 1 [QSA, L, E] Rev.Ryment ^ Content / ([0- 9] +) \ - ([a-zA-Z0-9 -] *) (. *) $ / Cms.php? Id_cms = $ 1 [QSA, L, E] RewriteRule ^ ([0-9] +) __ ([one-zA-Z0-9 -] *) $. () * $ /supplier.php?id_supplier=$1$3 [ QSA, L, E] RewriteRule ^ ([0-9] +) _ ([one-zA-Z0-9 -] *) (. *) $ /manufacturer.php?id_manufacturer=$1$3 [QSA, L, E ] RewriteRule ^ Lang - ([az] {2}) / $ / $ 2 isolang = $ 1 [QSA, L, E] # capture 404 errors ErrorDocument 404 / 404.php option RewriteCond% + FollowSymLinks RewriteEngine {(*. )? HTTP_HOST} *** COM [NC] RewriteRule ^ (*.) $ Http :. //www.****** [L, R = 301] Option # index.php + FollowSymLinks to RewriteEngine / RewriteCond% {THE_REQUEST} ^ [AZ] {3,9} \ /. Index \ .php \ HTTP / RewriteRule ^ (. *) Index \ .php $ / $ 1 [R = 301, L] Header Set Cash Control: "No-Store, No-Cash, Rick-Delitate, Pre-Check = 0, post-check = 0, max-age = 0 "
this normal Formally simple is basically two ways First of all, instead of just an internal rewrite, you can read 301 reads for the "canonical" version of the page (whichever you choose as a canonical version) Respond with Yrekt. This would mean that those coming through the old link will be redirected to the new link. The search engine will also process 301 redirects and only the "last" destination will be counted as the actual page.
Another option, if you do not want your users to redirect to a new page, then a
& lt ; Link rel = "canonical" href = "http://www.example.com/lang-en/whatever/blah" />
Comments
Post a Comment