Htaccess file

Htaccess file

Postby admin » Wed Dec 14, 2016 12:08 pm


  1. For example, website http://www.example.com has setup a few subdomains such as http://video.example.com, http://image1.example.com, http://image2.example.com. In Apache virtual host setting, they are using the same folder (e.g. /home/example/). These two domains have different bandwidth setup using mod_cband.

    Have subfolders /home/example/files/videos and want to make it only accessible from the subdomain http://video.example.com/files/videos/ but not from http://www.example.com/files/videos/ or any other subdomains.

    Code: Select all
    Options +FollowSymLinks -MultiViews
    # Turn mod_rewrite on
    RewriteEngine On
    RewriteBase /files/videos/

    # if it is not for domain video.mywebsite.com then block it
    RewriteCond %{HTTP_HOST} !^video\.mywebsite\.com$ [NC]
    RewriteRule ^ - [F]
The AVNW Support Team

If there is a false accusation made against you, then remove this fake report.

Shopping for a new website? See our design deals.

How much is your website worth? Get a free estimate.

And, if our post has provided you with great information, there are a few ways you can show your appreciation:
  1. Like us on Facebook
  2. Post a review.- Posting a good review about this site could help us provide improved support.

Thank You!
User avatar
Site Admin
Posts: 497
Joined: Sun Jan 12, 2014 11:18 pm
Location: New York City

Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest