Welcome! To use this support forum, please Login or Join Today!

You are here → Home :: Forum Home :: General WordPress :: WordPress :: Thread

   

don’t create pages for media images

{name}
Rank

Total Posts: 4

Joined 2011-08-29

PM

 
Hi everybody,

I use presstige on http://www.begra-befestigungstechnik-behr.de to build an onlineshop.

The problem I've got is, that when somebody searches on google he finds a page which is only a gallery site.
f.ex. http://www.begra-befestigungstechnik-behr.de/tjep_tf-18_50_gas/100810_tjep_tf-18-50_gas/

If u search site:www.begra-befestigungstechnik-behr.de on google. you can see on the second page this entry.

How do I stop this? Is it possible to tell wordpress that it shouldn't create those media pages? Or is it possible to tell goole not to index this pages?

Thanks for your help and sorry for my broken english.

Kind regards.
Marco
{name}
Rank

Total Posts: 4

Joined 2011-08-29

PM

 
found a solution:

only create a new php file called image.php and insert:
<?php
header ('HTTP/1.1 301 Moved Permanently');
header ('Location: '.get_permalink($post->post_parent));
?>


and upload it into your themes folder
{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 
Very nice looking site. Glad you found a solution to your issue.