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 Tue, Apr 9, 2013 at 2:07 PM, Al n...@ridersite.org 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
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.,
FilesMatch ^(makeScodeImg.php)
Order Allow,Deny
Deny from all
/FilesMatch
This seems to me as it should deny to all except
: 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 seem to work
On Mon, May 23, 2011 at 11:52 AM, Al n...@ridersite.org 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.,
FilesMatch ^(makeScodeImg.php)
Order Allow,Deny
Deny from
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.
Files *
Order Deny,Allow
Deny from all
Allow from xx.36.2.215
/Files
xx.36.2.215 is actual value IP
This file makes a captcha image and is called with
img
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
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
On Fri, Sep 11, 2009 at 4:46 PM, tedd t...@sperling.com 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
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
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
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
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
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
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=1b=5c=2d=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,
i
At 06:57 PM 3/22/01 +0100, Jimmy Bckstrm 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 .htaccess file
16 matches
Mail list logo