dk_french032
dk_french032

Reputation: 648

Robots.txt disallow subdirectoy but allow folder within that

Im looking to disallow a subdirectory in my root folder but allow a folder within that.

What I have:

User-Agent: *
Disallow: /admin

I want to allow /admin/images

Is this possible?

Upvotes: 0

Views: 54

Answers (1)

minion
minion

Reputation: 4353

Try this. Give a try in robots.txt tester to avoid any negative impact.

Allow: /admin/images/
Disallow: /admin/ 

Upvotes: 0

Related Questions