Possible To Apply .htaccess To Only One Folder

Dec 19, 2007

Is it possible to get the .htaccess file to apply to only one folder? As in if we stick it in the public_html/ folder, how can we prevent those rules from being applied to all the folders in public_html/ folder?

View 3 Replies


ADVERTISEMENT

Apache :: Force HTAccess Rules To Apply To Subdirectories

Jun 15, 2014

I have some instructions written in the .htaccess of root directory for my website. So how to force those rules to apply to all sub directories even if those sub directories have .htaccess that overwrite the rules of the mother .htaccess on the root directory ? For example the root .htaccess deny access to all *.log files, so how to force that rule even if in some subdirectories there is some .htaccess files that allow access of *.log files.

View 1 Replies View Related

Redirect From One Folder To Another Via .htaccess

Jan 13, 2007

We had a subdomain that was [url]and we have now decided we would like to use [url]

I have setup the gallery on the new server as [url]

I would like to be able to if someone had a link [url]for it to redirect them too [url]

View 3 Replies View Related

Apache :: HTAccess Redirect Root To Folder

Nov 28, 2006

I searched URL....but I still could not get this to work.I need a redirect to a certain folder when people visit the root directory of my site.

View 7 Replies View Related

Redirect To Folder Based On Login Info With .htaccess

Aug 3, 2007

Here is the situation.

I would like for people to go to [url] and be prompted for a login (.htaccess). Then depending on the login, redirect to the appropriate folder.

Example.

User 1 logs in as example1 with password xxxxx. It redirects them to domain.com/whatever/example1 with the successful login.

User 2 logs in as example2 with password xxxxx. It redirects them to
domain.com/whatever/example2 with the successful login.

Is this even possible with .htaccess? If not, is there any way to do this via a php script or anything?

View 1 Replies View Related

Plesk 12.x / Linux :: Apply DNS Template Changes

Mar 11, 2015

I am currently in the process of migrating a few hundred domains from one server to another using Plesk's Migration & Transfer Manager. The servers have the following name servers allocated:

Server 1: ns9.example.com & ns2.example.com
Server 2: ns1.example.com & ns2.example.com

In the DNS Zone Template in Tools & Settings on Server 2, can I just click Apply DNS Template Changes and change all migrated domains NS records to ns1/ns2? Will this affect custom DNS entries as a lot of the domains have DNS changes that need to remain. I'm just hoping that this might be a quicker way than going into each domains DNS zone and manually changing ns9 to ns1.

I just really don't want all the domains DNS zones to reset to the standard template on Server 2 ...

View 7 Replies View Related

Plesk Automation :: Apply DNS Template

Feb 3, 2015

I try to apply my dns template to all dns but it can't work.

I try on the interface and on the command line.

/usr/local/psa/bin/dns --reset [domain_name] -ip [ip]

View 1 Replies View Related

Plesk 11.x / Windows :: Bandwidth Add-on Does Not Apply

Jan 30, 2014

Running Plesk 11.0.9 Windows 2008 R2 ...We host several sites. One customer in particular has a locked default hosting package (for custom scripting needs under their website setttings) and we have applied an add-on of 10GB of bandwidth. The system does not show that it has increased their allowance still showing 19.9 of 10 Available (when it should be 19.9 of 20 available)

Also, we have not been getting overage notices for this customer....when normally we do. Maybe it's related to some automated task that's not running?

View 1 Replies View Related

What Is Exactly Load Balancing And Server Redundancy And How To Apply It

Nov 4, 2006

what is exactly load balancing and server redundancy and how to apply it.

View 4 Replies View Related

Plesk 12.x / Linux :: PHP Custom Settings Does Not Apply

Sep 15, 2014

Ubuntu 12.04

Upgraded Plesk from 11.5 to 12.0.18 from panel.

I have installed PHP 5.3.29 (make from sources)

All smooth, added handler:

Code:
/usr/local/psa/bin/php_handler --add -displayname 5.3.29 -path /usr/local/php5329/bin/php-cgi -phpini /usr/local/php5329/etc/php.ini -type fastcgi -id php5329

App work ok after change to new php with hosting settings(change php handler Fast Cgi)

But php info shows that: Loaded Configuration File is /etc/php5/cgi/php.ini

This is not good as I checked should be for certain vhost cutsom php ini which is generated by PHP settings.

For example I changed in Plesk memory_limit to 333MB applied changes panel show successully, but still there is 128MB default value in phpinfo().

Am I missing sth ? Is there additional task needed expect adding handler? Or is there a known bug?

ps. after change handler back to 5.3.10, (default installation) there also custom PHP settings file seems not to be processed.

I did not tested earlier maybe upgrade Plesk to v12 broked sth? What should I check?

I have tried to delete (and let psa recreate) php.ini from vhost/system/mydomain.com/ but also did not worked...

View 15 Replies View Related

Plesk 12.x / Linux :: Can't Apply Process Slot

Jul 11, 2015

im suddenly seeing this in my error log not sure what i need to change

mod_fcgid: can't apply process slot for /var/www/cgi-bin/cgi_wrapper/cgi_wrapper

View 1 Replies View Related

How Do I Apply A MAC Address (of My Choice, Not Random) To A VE (Virtuozzo Powered)

Jul 13, 2009

How do I apply a MAC Address (of my choice, not random) to a VE (Virtuozzo powered)

I tried this:

[root@node root]# vzctl set VEID# --mac "actual mac address here" --save
Invalid usage. Option --ifname not specified

In order to license software for use for my client's company, the vendor needs the MAC Addresses setup for their vps' virtual enet interfaces.

View 3 Replies View Related

Plesk 12.x / Linux :: Relation 502 Bad Gateway / Can't Apply Process Slot And Restart Iptables

Jul 8, 2015

I have a strange issue on a Plesk 12 VPS. Sometimes the sites result in a "502 Bad Gateway (nginx)". This happens 1 or 2 times a day on different times.

In the httpd log I see a record "can't apply process slot" and in nginx log I see "connect() failed (111: Connection refused) while connecting to upstream" but restarting apache and/or nginx will not always result in a working site.

When I restart iptables everything is working fine again.

View 5 Replies View Related

/tmp Folder 777 ... Use As Sessions Folder... Secure

Aug 14, 2007

On my VPS I would like to set the /tmp folder to 777 and point to it with session.save_path.

The VPS will host a number of sites, but I will have sole control of them. ie. the account holders will not have access to cpanel.

If it makes any difference, the server is running phpSUexec.

What are the risks involved with this?

View 3 Replies View Related

Transfer Files From One Folder On Server To Folder On Different Server

Jul 16, 2008

I have two servers.

One server has a folder named 'vidfiles' and I want to transfer this entire folder (all 70gigs) to another server I just got.

Both servers are linux and use CPanal/whm.

What would be the command to get the files to transfer direct from server to server?

View 4 Replies View Related

.htaccess On IIS

Jun 3, 2008

I am using a script, on which i want to enable friendly URL, below are the instructions.

Friendly URLs Settings
Apache Settings

(please add the following lines to your
.htaccess file to turn on friendly URLs)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /hcl/friendly_url.php [L]
</IfModule>

But, issue is, i am using IIS on Windows Server.

How can i implement this?

View 11 Replies View Related

Com To Co.uk With .htaccess

Sep 7, 2008

I want a rule in .htaccess that will convert all .com addresses into .co.uk ones as I have a .com mapped to the .co.uk address for the site.

View 7 Replies View Related

.htaccess

Mar 11, 2007

I have a vds with godaddy. I uploaded my site and then uploaded .htaccess (AddHandler server-parsed .html) Then when I go to my site in browser I get this error.

Safari can’t open the page “mydomain”. The error was: “lost network connection” (NSURLErrorDomain:-1005) Please choose Report Bug to Apple from the Safari menu, note the error number, and describe what you did before you saw this message.

The thing is, I did the exact same thing on another domain with the same htaccess file and everything works fine. SSI is enabled on both.

View 1 Replies View Related

.htaccess

Oct 11, 2007

I'm currently having a problem with a site of mine. The problem is that trying to go to domain.com/subdirectory/ (with or without the trailing slash) gets a 404 error (even though the directory exists).

However, domain.com/subdirectory/file.php works fine.

When trying to figure out what is causing this, I remembered that someone who recently did some work on this site had to add something to the .htaccess file. Here's what they added:

RewriteCond $1 !.(php|ico|gif|jpg|png|css|js|htm|html|txt|zip|pdf)$
RewriteCond $1 !^$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [L]

I haven't done much with .htaccess, so I really have little idea what any of the above means or does (although I know it does something important).

So I guess my question is, could this bit of code be causing my problem? And, if so, how can it be corrected without messing up what this code was put there for in the first place?

View 1 Replies View Related

Can I Use .htaccess With IIS

Jan 24, 2007

My application is on Windows plateform and using IIS as webserver.

Can I use .htaccess to secure my directory...

View 1 Replies View Related

Htaccess

Jul 12, 2007

Code:

RewriteCond %{QUERY_STRING} ^showtopic=([^&]+)&st=0$ RewriteRule ^forum/index.php$ [url]
I get a 500 Internal Server Error when I put that in my .htaccess file. Got it from [url]

View 5 Replies View Related

.htaccess

Jul 18, 2007

htaccess file that will redirect all requests for the domain to --

https://www.

so what I want is all traffic to be secure and use the 'www'.

View 11 Replies View Related

*.* And .htaccess

Jul 10, 2007

If I do rm -f *.* I see that .htaccess is not deleted

If I do copy -f *.* /somedir .htaccess is not copied.

Why?

What should I do to represent all files including .htaccess?

View 7 Replies View Related

.htaccess

Oct 4, 2007

i have a mobile download site.. now i dont want users to directly download from my site.. i mean hotlinking..

I hav a referal thing in my .htaccess

RewriteCond %{HTTP_REFERER} !^[url](/)?.*$ [NC]

Now there is a flashget like software for mobiles.. i want that my users are able to download using that software but the prob is that soft doesnt sends any referal info.. so in my .htaccess i want to allow that software and i am trying this

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^.*FGet 1.0.*$ [NC]
RewriteCond %{HTTP_REFERER} !^[url](/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^[url](/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^[url](/)?.*$ [NC]
RewriteRule .*.(zip|avi)$ - [F,NC]

where FGet 1.0 is the HTTP_USER_AGENT send by the software, but this doesnt works.. can plz give me the right code for it

View 6 Replies View Related

Htaccess

Sep 28, 2007

I'm have a bit of a mare getting some htaccess to work.

Here's my code:
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-F
RewriteRule ^([-_!*$@~:.a-zA-Z0-9]+)$ [url]

The above works on a CPanel server but i've just moved the site to a fedora core 6, with standard httpd no control panel.

This is an entry from my log files:

PHP Code:
X.X.X.X [28/Sep/2007:11:51:34 +0100] "GET /my_profile.php?username=my_profile.php HTTP/1.1" 302 349 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)" 




For some reason it appends the my_profile.php to the end of the url, and it does it to any file in the same directory and just keeps going around in a loop, why would it do this?

View 3 Replies View Related

Redirect Old Url To New Url Using .htaccess

Jun 6, 2009

Apache redirect. I would like to point all the old site URLs to my site homepage e.g.

[url]should point to [url]

or better,

[url]should point to [url]

tell me the redirect code i need to add to my .htaccess file to make this work?

View 3 Replies View Related

Htaccess And UA Whitelist

May 30, 2009

What are the most common UAs? What I want to do is whitelist all the legit UAs and block the rest.

View 0 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved