0
votes
1answer
130 views

htaccess to Allow Downloads from Specific User agent and HTTP Referrer [duplicate]

i want to allow some files to be downloaded if only the user agent or referrer match the following These are the user agents uTorrent *Bittorrent* Transmission This is the http referrer ...
0
votes
1answer
348 views

How Do I Set Up a Subdomain with a Separate Webhost and Domain Registrar?

I have looked at all sorts of solutions online and come up with nothing. I cannot ask the webhost for help because it's not my hosting account; I am setting it up for a client. My client has a ...
1
vote
1answer
55 views

Can't find file in .htaccess

In my website I'm trying to implement friendly URLs. I have an index.php file and a .htaccess file in my hosting's public folder. I'm using the following code in the .htaccess file: DirectoryIndex ...
0
votes
2answers
157 views

Using mod_rewrite as a stand-in for VirtualHosts to host two domains on one GoDaddy hosting account

I'm trying to do something like VirtualHosts using mod_rewrite on a GoDaddy hosted site. I have a single hosting account and two domains, a.com and b.com. I want requests for b.com/document.html to be ...
0
votes
2answers
588 views

htaccess protection for some subdomain folders only

I have two site hosted as subdomains. One of the site use subdomains as aliases for dynamic images requests. site1.example.com site2.example.com sub1.example.com -> same as site1 sub2.example.com ...
0
votes
3answers
268 views

Parse PHP in HTML files - files download instead of parse

Seems easy, right? Done it a million times, right? Me too. For some reason this isn't working on an A2 hosting configuration. Anyone have any ideas? In .htaccess in "/" directory AddType ...
0
votes
2answers
47 views

Domain and web hosted in diferents providers

Hi have some domains with one provider and the hosting service with other provider. In the hosting service I have one folder for each domain to host webpages. Can I configure DNS entries (in one ...
0
votes
1answer
55 views

Please Help Me Optimize This

I'm trying to optimize my .htaccess file to avoid performance issues. In my .htaccess file I have something that looks like this: RewriteEngine on RewriteCond %{HTTP_USER_AGENT} bigbadbot [NC,OR] ...
0
votes
1answer
393 views

Difference between SetEnvIf and RewriteCond?

In my .htaccess file, I'm currently using RewriteCond to match the user agent of bad bots. I know that SetEnvIf can also be used to block bad bots too. The question is, what's the difference between ...
0
votes
2answers
181 views

.htaccess regular expressions for optimal performance?

In my .htaccess file I'm trying to block some bots using: RewriteCond %{HTTP_USER_AGENT} ^badbot [NC] But, I want to change these conditions to something more inclusive like: Method #1: ...
0
votes
2answers
401 views

Serve website from “www” subfolder rather than root

I recently bought Gold hosting from GoDaddy (only to realise that my previously also from GoDaddy purchased GoogleApps domain can't be joined with this new account, but that is a different story..) ...
1
vote
4answers
266 views

Help! Why do blocked bots still waste bandwidth?

I've blocked a majority of bots that keep sending POST requests to my website, using .htaccess. Each time one of these bots tries to access my website it receives a 403 forbidden error message. My ...
0
votes
1answer
140 views

Script and file execution security with .htaccess

I'm trying to figure out which method I should use to control script/file execution security. I'm trying to protect against malicious file upload/execution exploits where a user could potentially ...
1
vote
2answers
304 views

.htaccess security

In my .htaccess file I've been trying to figure out if I should use: Options None which of course would disable all extra options, but I've been reading mixed opinions concerning the use of "Options ...
0
votes
2answers
49 views

Hosting part of a website under a different domain

I have a website where we want to move the admin portion to a different URL (for security purposes, according to the site owner). So, to make the admin section accessible only from this new domain ...
0
votes
3answers
111 views

.htaccess File Placement

Can a subdirectory have its own .htaccess file that is different from the .htaccess file in the root directory? Thanks in advance, John