I'm using the views module to create blocks that display a subset of node content using a node-type filter, and a specifically created content-type.

This seems to be working fine, but when you click on the title of each node (when it displays in the block), it takes me to a page for that node (/node/25 etc).
I can disable the link through a template, but I'm wondering about SEO. I'd prefer for that node/25 PAGE not to exist at all. Can I prevent this from being available?

Thanks

Comments

jaypan’s picture

The default node page will always exist, there is no way around that. Your best bet is to alter your views module so that it doesn't output the title as a link.

Contact me to contract me for D7 -> D10/11 migrations.

paulskinner’s picture

does that mean that its not the right approach to use nodes in that fashion?

I'll remove the link for starters.

Can I use robots.txt to disable bots from going to them? Obviously I don't want to shut off all my nodes, of other content-types.

Thanks

Kirk’s picture

Your best option is to use robots.txt to stop Google from finding those pages. The link to the node will always exist, but if you're using CCK fields to store your content, you can hide those fields from being displayed on the Full Node. So in the event someone found the node, they would essentially see a blank page.

You could probably do some clever stuff through .htaccess as well to redirect people who visit your nodes, though I would suggest against it because it might make the site difficult to administer.

jaypan’s picture

edit: Double post

Contact me to contract me for D7 -> D10/11 migrations.

joehudson’s picture

I have the same issue. Scoured available modules, found nothing suitable. Decided to use a combination of pathauto to put the nodes in question in a path unique to that node type, with mod_rewrite to redirect wherever I want (and robots.txt to prevent unwanted crawling).

(I've also realized that some of the content I was going to treat this way would actually be better off with a unique page and searchable after all. If the content is unique and relevant and is able to stand on it's own, even though not part of the site map, may as well get it indexed)