Re: [PHP] htaccess question

2013-04-09 Thread Daniel Brown
On Tue, Apr 9, 2013 at 2:07 PM, Al wrote: > I know it's not a php question, but I can't readily find the answer > elsewhere. > > I want to make this directive universal. Put htaccess file on any host in > any folder. > > This works > RewriteEngine On > > RewriteCond %{SERVER_PORT} !=443 > > Rewrit

[PHP] htaccess question

2013-04-09 Thread Al
I know it's not a php question, but I can't readily find the answer elsewhere. I want to make this directive universal. Put htaccess file on any host in any folder. This works RewriteEngine On RewriteCond %{SERVER_PORT} !=443 RewriteRule ^(.*)$ https://www.foo.org/bar/$1 [R=301,L] #Here the

Re: [PHP] htaccess question

2011-05-23 Thread Alex Nikitin
On Mon, May 23, 2011 at 11:52 AM, Al wrote: > How can I prevent access to all files in a directory except one with an > htaccess file. > > I've tried several approaches found with Googling; but, none seem to work. > > e.g., > > Order Allow,Deny > Deny from all > > > This seems to me as it shoul

RE: [PHP] htaccess question

2011-05-23 Thread admin
From: Al [mailto:n...@ridersite.org] Sent: Monday, May 23, 2011 11:53 AM To: php-general@lists.php.net Subject: [PHP] htaccess question How can I prevent access to all files in a directory except one with an htaccess file. I've tried several approaches found with Googling; but, none se

[PHP] htaccess question

2011-05-23 Thread Al
How can I prevent access to all files in a directory except one with an htaccess file. I've tried several approaches found with Googling; but, none seem to work. e.g., Order Allow,Deny Deny from all This seems to me as it should deny to all except makeScodeImg.php Thanks -- PHP General Ma

[PHP] htaccess question

2011-04-24 Thread Al
I want to restrict access to all files except one on my site and in parent dir. Thought this should work; but it doesn't. Order Deny,Allow Deny from all Allow from xx.36.2.215 xx.36.2.215 is actual value IP This file makes a captcha image and is called with in file /dir/control.php makeSco

Re: [PHP] htaccess question

2009-09-11 Thread J DeBord
On Fri, Sep 11, 2009 at 4:46 PM, tedd wrote: > Hi gang: > > Is there a way I can use a htaccess directive to require a php script to be > "included" within each file contained within that directory? > > For example, let's say I have a directory with 100 scripts in it, but I > want each script wit

Re: [PHP] htaccess question

2009-09-11 Thread Sudheer Satyanarayana
Is there a way I can use a htaccess directive to require a php script to be "included" within each file contained within that directory? For example, let's say I have a directory with 100 scripts in it, but I want each script within that directory to pass through an authorization script befo

[PHP] htaccess question

2009-09-11 Thread tedd
Hi gang: Is there a way I can use a htaccess directive to require a php script to be "included" within each file contained within that directory? For example, let's say I have a directory with 100 scripts in it, but I want each script within that directory to pass through an authorization sc

Re: [PHP] .htaccess question protect my php test environment

2003-10-24 Thread John Nichel
Frank Tudor wrote: John, Sorry I did use htpasswd... Override? Do you have a snip from a config file that I can look at? I don't mind editing the httpd.conf manually. Frank This controls which options the .htaccess files in directories can override. Can also be "All", or any combination of "O

Re: [PHP] .htaccess question protect my php test environment

2003-10-24 Thread John Nichel
Frank Tudor wrote: I have to apologies about this posting in advance so please don't flame me too bad for being off topic. Question: I want to create an .htaccess file to protect my files I did the passwrd -c /directory/file frank The above is wrong, the below is right htpasswd -c /path/to/f

Re: [PHP] .htaccess question protect my php test environment

2003-10-24 Thread Raditha Dissanayake
Hi, It's htpasswd and not passwd. As many others on this group i don't use the redhat config system it's lame. You will be better off editing httpd.conf and adding an AllowOverrides directive. best regards Frank Tudor wrote: I have to apologies about this posting in advance so please don't fla

[PHP] .htaccess question protect my php test environment

2003-10-24 Thread Frank Tudor
I have to apologies about this posting in advance so please don't flame me too bad for being off topic. Question: I want to create an .htaccess file to protect my files I did the passwrd -c /directory/file frank the set a password and then confirmed the password I created a .htaccess file with

Re: [PHP] htaccess question

2001-04-14 Thread Peter Van Dijck
Also, I am trying to find a way to get this to work: within the directory I'm in, 1/5/2/3 should be rewritten to index.php?a=1&b=5&c=2&d=3 I'm sure lots of people have done this before, but the Apache examples don't seem to include this. Where can I find a working example? Thanks! Peter >Hi,

[PHP] htaccess question

2001-04-14 Thread Peter Van Dijck
Hi, i installed Apache, PHP and mySQL on winNT. I am trying to get htaccess files to work. I created a .htaccess file in a directory with this line in it: errordocument 404 /404.php I changed the httpd.conf file for apache and restarted apache like this: # AllowOverride None AllowOverride All B

Re: [PHP] .htaccess question

2001-03-22 Thread Brian S. Dunworth
At 06:57 PM 3/22/01 +0100, Jimmy Bäckström wrote: >Yo! >I need to know how I create a login script that uses the htaccess file to >authenticate users. >Thankful for any answers! >/Broder B Set up your .htaccess file as usual, pointing to a userfile created with htpasswd. Place the .htacces

[PHP] .htaccess question

2001-03-22 Thread Jimmy Bäckström
Yo! I need to know how I create a login script that uses the htaccess file to authenticate users. Thankful for any answers! /Broder B