Jump to content

Please help me write htaccess to block certain URL


ali_kiyani

Recommended Posts

Hi,

 

I have a website with two domains:

 

website.com/myfolder

website.net/myfolder

 

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.

How do I write .htaccess file?

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.