But if you click on this link will redirected to: carscreen.org/lamborghini/urus/Lamborghini_Urus_Wallpaper/
Any idea to resolve this problem please!
Thanks.
MarkRH
Joined: 2007-05-25
Posts: 219
Posted: Wed, 2012-05-02 11:01
You'll want to edit the robots.txt file and add:
Disallow: /photos/
Disallow: /movies/
To the existing list of directories that are there so that bots don't index those URLs. Basically, any URL or link that your gallery has in it that you don't want indexed, be sure to add it. I've also Disallowed /tag/, /rss/ and several others.
Regards,
Mark H.
Using Gallery 3.0.3 - gallery.markheadrick.com
bigu_c
Joined: 2007-10-28
Posts: 417
Posted: Wed, 2012-05-02 11:24
Problem I can't understand is why after re-write URL, its carscreen.org/lamborghini/urus/Lamborghini_Urus_Wallpaper/
But Google Indexed: carscreen.org/photos/28088/
(You will never see this on your browser: carscreen.org/photos/28088/)
MarkRH
Joined: 2007-05-25
Posts: 219
Posted: Thu, 2012-05-03 04:35
It probably got those links via the RSS Feed which is using links like carscreen.org/photos/28079/ within it.
I changed line 26 and 27 of /modules/rss/views/feed.mrss.php from
Posts: 417
Here is example:
https://www.google.com/search?q=lamborghini+urus+wallpaper&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a&sout=1
(My site: carscreen.org).
Google indexed: carscreen.org/photos/28088/
But if you click on this link will redirected to: carscreen.org/lamborghini/urus/Lamborghini_Urus_Wallpaper/
Any idea to resolve this problem please!
Thanks.
Posts: 219
You'll want to edit the robots.txt file and add:
To the existing list of directories that are there so that bots don't index those URLs. Basically, any URL or link that your gallery has in it that you don't want indexed, be sure to add it. I've also Disallowed /tag/, /rss/ and several others.
Regards,
Mark H.
Using Gallery 3.0.3 - gallery.markheadrick.com
Posts: 417
Problem I can't understand is why after re-write URL, its carscreen.org/lamborghini/urus/Lamborghini_Urus_Wallpaper/
But Google Indexed: carscreen.org/photos/28088/
(You will never see this on your browser: carscreen.org/photos/28088/)
Posts: 219
It probably got those links via the RSS Feed which is using links like carscreen.org/photos/28079/ within it.
I changed line 26 and 27 of /modules/rss/views/feed.mrss.php from
<link><?= url::abs_site("{$item->type}s/{$item->id}") ?></link> <guid isPermaLink="true"><?= url::abs_site("{$item->type}s/{$item->id}") ?></guid>To:
<link><?= url::abs_site("{$item->relative_url_cache}") ?></link> <guid isPermaLink="false"><?= url::abs_site("{$item->type}s/{$item->id}") ?></guid>I used the same format that my blog was using for its feed.
Hope that helps,
- Mark H.
Using Gallery 3.0.3 - gallery.markheadrick.com
Posts: 76
Cool, that fixes the problem. Thank you!