4images Issues / Ausgaben > Discussion & Troubleshooting

Google Canonical

(1/4) > >>


I am running 4images on my website, today i checked the Google webmaster section and i have noticed that Google is pointing many pages as duplicate, I am trying to use Google Canonical but i am unable to fix this issue. My website URL structure is as follows.


and so on

now I want to add Google Canonical to my first URL i.e. site.com/stuff/cat-nokia-7710-themes-27.htm

How should I do this?


--- Quote from: khansahib on July 11, 2011, 05:48:35 PM ---......site.com/stuff/cat-nokia-7710-themes-27.htm
--- End quote ---
copy the follow row in all  *?page=X  between <head> .....</head>:

--- Quote ---
<link rel="canonical" href="http://www.site.com/stuff/cat-nokia-7710-themes-27.htm"/>


--- End quote ---

mfg Andi

Well, as you know doing manually will take ages as we have categories with 100 pages, so it won't do the trick, is there anything that can be changed i mean something in functions.php?

in my opinion there should be some changes in the following in functions.php

--- Code: --- "cat_url" => $site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$image_row['cat_id']),
--- End code ---

I am not sure i am right.

need your help.

there is no php file?:  "cat-nokia-7710-themes-27.php"

No we are using modified .htaccess here is what we have in .htaccess

--- Code: ---# Begin search engine friendly links code
RewriteEngine On
#RewriteBase /
#Mod_bmollet : category name in URL
RewriteRule ^cat-(.*)-([0-9]+).htm categories.php?cat_id=$2&%{QUERY_STRING}
#Mod_bmollet : Image name in URL
RewriteRule ^theme-(.*)-([0-9]+).htm details.php?image_id=$2&%{QUERY_STRING}

#Mod_bmollet : This is to make search function work  ( redirect links from search results )
RewriteRule ^theme([0-9]+).search.htm details.php?image_id=$1&%{QUERY_STRING}
RewriteRule ^cat\.htm$ categories.php?%{QUERY_STRING}

RewriteRule ^postcard([a-zA-Z0-9]+)\.htm$ postcards.php?postcard_id=$1&%{QUERY_STRING}
RewriteRule ^postcard\.img([0-9]+)\.htm$ postcards.php?image_id=$1&%{QUERY_STRING}
--- End code ---


[0] Message Index

[#] Next page

Go to full version