GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Robots.txt help. How do I do this? (https://gfy.com/showthread.php?t=656185)

wedouglas 09-16-2006 02:59 PM

Robots.txt help. How do I do this?
 
I want to disallow the folder /sub/, but I want to allow everything in that folder. e.g. /sub/page1, /sub/page2

Any quick way to allow all files/folders inside /sub/ but disallow /sub/ alone?

After Shock Media 09-16-2006 03:06 PM

yeah but cant remember, damn pain meds.

but not all spiders follow those rules.

Umm I think it is
User-Agent: *
Disallow: /dirofyourdesire/

I take no responsibility if you loose all rankings, i am under the influence.

spasmo 09-16-2006 03:09 PM

Quote:

Originally Posted by After Shock Media
Umm I think it is
User-Agent: *
Disallow: /dirofyourdesire/

That will disallow all the dirs under it too.

Hope you feel better soon, man.

boldy 09-16-2006 03:09 PM

Why dont you remove the index.html /.php from /sub/
and add a .htaccess file in /sub/:
Options -Indexes

After Shock Media 09-16-2006 03:11 PM

Quote:

Originally Posted by spasmo
That will disallow all the dirs under it too.

Hope you feel better soon, man.


Thanks, i feel great actually. One of those things about pain meds.

Oh and thats also why i put in warning.

wedouglas 09-16-2006 03:14 PM

Quote:

Originally Posted by boldy
Why dont you remove the index.html /.php from /sub/
and add a .htaccess file in /sub/:
Options -Indexes

There isn't one. This script uses a lot of mod rewrite. I can't htacces http://site.com/sub/ because it doesn't actually exist. apparently I can't redirect it either. My only option is to disallow it.

borked 09-16-2006 03:19 PM

Quote:

Originally Posted by wedouglas
I want to disallow the folder /sub/, but I want to allow everything in that folder. e.g. /sub/page1, /sub/page2

Any quick way to allow all files/folders inside /sub/ but disallow /sub/ alone?

Disallow /sub
Allow /sub/

-edit...but to play it safe, just name all the folders to allow

Allow /sub/folder1
etc

borked 09-16-2006 03:24 PM

http://www.google.com/support/webmas...48&ctx=sibling

wedouglas 09-16-2006 03:37 PM

Quote:

Originally Posted by borked

Yeah, I use there tool to test it. I ended up just allowing /sub/a-z* and disallowing /sub/

Thanks


All times are GMT -7. The time now is 06:44 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123