MyBB Community Forums

Full Version: how to block index.php from the url
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
how to block index.php/something using robots.txt. Anytext after index.php needs to be blocked.

Which means i don't want http://www.site.com/index.php/anythingheretobblocked.

any help please
i wonder if it will be possible.
i'm also interested Big Grin
Anyone have idea.
50% of the answer is in your question.

Open robots.txt and add the following

Disallow: /index.php
(2012-09-12, 09:43 PM)kamz89 Wrote: [ -> ]50% of the answer is in your question.

Open robots.txt and add the following

Disallow: /index.php

He only wants to disallow it when anything is after it if I am reading it correctly.
(2012-09-12, 09:58 PM)Paul H. Wrote: [ -> ]
(2012-09-12, 09:43 PM)kamz89 Wrote: [ -> ]50% of the answer is in your question.

Open robots.txt and add the following

Disallow: /index.php

He only wants to disallow it when anything is after it if I am reading it correctly.

Honestly I'm confused because in the start he wants everything after index.php to blocked then in the second line he doesn't want anything after index.php blocked.
(2012-09-12, 09:58 PM)Paul H. Wrote: [ -> ]He only wants to disallow it when anything is after index.php, if I am reading it correctly.

You are right, I need exactly that one.
Edit robots.txt and add:
Disallow: /index.php?*