Forum Moderators: phranque

Message Too Old, No Replies

Please help me write htaccess to block certain URL

Wants to block a certain folder on .com

         

TechMan

6:14 am on Aug 21, 2008 (gmt 0)

10+ Year Member



Hi,

I have a website with two domains:

website.com/myfolder
website.net/myfolder

Both domains resolve to same website. So whether you open website.com or website.net it will open same website.

I want to block access to "website.com/myfolder" while "website.net/myfolder" will remain accessible.

Similarly website.com and website.net as a whole should be accessible.

It's only "website.com/myfolder" that should be blocked.

What will be the contents of .htaccess file?

Thanks

wilderness

3:02 pm on Aug 21, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



There are numerous examples in the archives.

sub+domain+rewrite [google.com]

TechMan

5:39 pm on Aug 22, 2008 (gmt 0)

10+ Year Member



Thanks man let me try it.