By james2002 on
I have installed the website at
But if someone put node at the end of my site, there appears the site. I think it is not very nice.
How do I make it so that if someone put "node" at the end of my homepage, nothing appears but only error page.
thanks
Comments
=-=
a) why would someone arbitrairily put node in the path ?
b) drupal redirects this the way it does so that users don't think your site is broken by getting error messages instead of your home page. I suppose if you really wanted to stop that mechanism you could do some .htaccess hacking
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
I think some people do... I
I think some people do... I use other stuff for my front page, and I'm fairly certain I've not linked to 'node' anywhere on the site, and yet it comes up in my top pages log.
Should we not allow search
Should we not allow search engines spider to index /node and subdirectories?
Web hosting sites
> and I'm fairly certain
> and I'm fairly certain I've not linked to 'node' anywhere on the site
That's your frontpage.
In admin > site information > Defualt Frontpage you have set it to 'node'.
This special page collates and displays all the nodes which are 'published to frontpage'
Your users just see www.sciencelatest.com in their browser bar, due to a url rewrite,
but the real page is http://www.sciencelatest.com/node, and I think that is what your
log is showing.
Um, no... like I said, I use
Um, no... like I said, I use other stuff for my front page. It's set to show a panel currently.
so...
> Um, no... like I said, I use other stuff for my front page.
> It's set to show a panel currently.
OK, I don't doubt you.
But can you explain why www.sciencelatest.com and www.sciencelatest.com/node
display exactly the same page?
I'm certainly not an expert, but surely if it is set-up as you suggested,
www.sciencelatest.com/node would show Drupal's default page of
'promoted to frontpage' content (which it appears to do), whilst
www.sciencelatest.com would display your customised 'panels' page?
> But can you explain why
> But can you explain why www.sciencelatest.com and www.sciencelatest.com/node
display exactly the same page?
Probably because I'm not the OP and that's not my site... I'm just a random thread commenter :-D
=-=
that site does that because node is the front page.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
> Probably because I'm not
> Probably because I'm not the OP and that's not my site
lmao. Sorry, I didn't notice the change of identity!
It's very strange behaviour for people to add /node, isn't it?
Firstly, they'd have to know it was a drupal site, secondly they'd need to know
how to use drupal itself, and thirdly, they'd need a reason not to want to use
your panels frontpage.
Maybe it is drupal users who visit your site from the forums, and are curious
about how the front page was constructed, so they're testing node to see
what content they get served? Or maybe there is a search engine result out
there somewhere linking to /node?
Do you know the answer?
The last hit I have for
The last hit I have for /node resolves to: llf520164.crawl.yahoo.net.
I'm pretty sure I've never linked to /node anywhere on the site. Weird.
=-=
you can disallow node in robots.txt
if the site was live before the panels page went into effect it would explain why node was picked up and is still being used by crawlers.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
Note that you cannot protect
Note that you cannot protect against all sorts of random things people might put into your URL.
Due to Drupals path-resolution fallback process you may get a few (infinitely many) false positives if people start making up URLs, eg
/node/27/this/is-totally-bogus is valid and will serve a page.
Not to mention
/contact?thought=this-site-sucks
or
/home#I_AM_A_LOONY
... etc ;-)
I think your problem is not a big deal, and wouldn't lose any sleep over it. The solutions (if they can be found) are complex and just not worth it.
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards