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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
17 matches
Mail list logo