Jump to content

google only indexes /search.php


itbranson

Recommended Posts

Hello,

When i check my shop and its keyword SERP in google, it shows only: myshop.com/search.php result.

 

I've friendly URLs, canonical URL module enabled and category and products' pages meta fields are carefully filled in. I have done my best not to create duplicate content issue. But still google only shows /search.php result while excluding my product pages....very disappointing!

 

Any help i mean really any kind of hint is greatly appreciated! This is my first e-commerce project and i'm very confused.

 

Regards!

Link to comment
Share on other sites

Hi, thanks a lot for the reply. Here's the content of my htaccess:

 

 

# .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/?(.*)$ /music/webservice/dispatcher.php?url=$1 [QSA,L]

RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /music/img/p/$1-$2$3.jpg [L]

RewriteRule ^([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ /music/img/p/$1-$2.jpg [L]

RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /music/img/p/$1/$1$2.jpg [L]

RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /music/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$ /music/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$ /music/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$ /music/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$ /music/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$ /music/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$ /music/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$ /music/img/c/$1$2.jpg [L]

RewriteRule ^c/([a-zA-Z-]+)/[a-zA-Z0-9-]+\.jpg$ /music/img/c/$1.jpg [L]

RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /music/product.php?id_product=$1 [QSA,L]

RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /music/category.php?id_category=$1 [QSA,L]

RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /music/product.php?id_product=$1 [QSA,L]

RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) /music/supplier.php?id_supplier=$1 [QSA,L]

RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) /music/manufacturer.php?id_manufacturer=$1 [QSA,L]

RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /music/cms.php?id_cms=$1 [QSA,L]

RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /music/cms.php?id_cms_category=$1 [QSA,L]

RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /music/img/c/$1$2.jpg [L]

RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html /music/product.php?id_product=$3&isolang=$1 [QSA,L]

RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html /music/product.php?id_product=$2&isolang=$1 [QSA,L]

RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*) /music/category.php?id_category=$2&isolang=$1 [QSA,L]

RewriteRule ^404-error$ /music/404.php [QSA,L]

RewriteRule ^address$ /music/address.php [QSA,L]

RewriteRule ^addresses$ /music/addresses.php [QSA,L]

RewriteRule ^authentication$ /music/authentication.php [QSA,L]

RewriteRule ^best-sales$ /music/best-sales.php [QSA,L]

RewriteRule ^cart$ /music/cart.php [QSA,L]

RewriteRule ^contact-us$ /music/contact-form.php [QSA,L]

RewriteRule ^discount$ /music/discount.php [QSA,L]

RewriteRule ^guest-tracking$ /music/guest-tracking.php [QSA,L]

RewriteRule ^order-history$ /music/history.php [QSA,L]

RewriteRule ^identity$ /music/identity.php [QSA,L]

RewriteRule ^manufacturers$ /music/manufacturer.php [QSA,L]

RewriteRule ^my-account$ /music/my-account.php [QSA,L]

RewriteRule ^new-products$ /music/new-products.php [QSA,L]

RewriteRule ^order$ /music/order.php [QSA,L]

RewriteRule ^order-follow$ /music/order-follow.php [QSA,L]

RewriteRule ^quick-order$ /music/order-opc.php [QSA,L]

RewriteRule ^order-slip$ /music/order-slip.php [QSA,L]

RewriteRule ^forgot-your-password$ /music/password.php [QSA,L]

RewriteRule ^specials$ /music/prices-drop.php [QSA,L]

RewriteRule ^search$ /music/search.php [QSA,L]

RewriteRule ^sitemap$ /music/sitemap.php [QSA,L]

RewriteRule ^stores$ /music/stores.php [QSA,L]

RewriteRule ^suppliers$ /music/supplier.php [QSA,L]

</IfModule>

 

# Catch 404 errors

ErrorDocument 404 /music/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

the htaccess content above is from the shop root: myshop.com/music/

 

But i have another htaccess in the public html of my server. And its content:

 

 

 

RewriteEngine on

 

RewriteCond %{HTTP_HOST} ^myshop.com$ [OR]

RewriteCond %{HTTP_HOST} ^www.myshop.com$

RewriteRule ^/?$ "http\:\/\/www\.myshop\.com\/music" [R=301,L]

 

Btw, do i have to keep both of them? The first one in the root, while the second one is in the public html where my shop folder is.

 

thanks a lot!

Link to comment
Share on other sites

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...