Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #15610

Re: change page url according to id

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.php
Subject Re: change page url according to id
Date Fri, 24 Jul 2015 08:28:07 +0200
Organization PointedEars Software (PES)
Lines 35
Message-ID <8461971.mpfdkj3dN5@PointedEars.de> (permalink)
References <0bc4ef40-a643-427a-8971-0d5d9ed574d5@googlegroups.com> <WJednSeTUfllMDHInZ2dnUU7-I-dnZ2d@posted.internetamerica> <c9ebddf7-5d0a-4548-a0a2-8cef38d99ea3@googlegroups.com> <mok4r9$cqi$1@dont-email.me> <6rurx.288487$Pb6.182445@fx04.iad> <1473148.XobnLxc11U@PointedEars.de> <fd692e5f-69bb-42bd-bacf-c875a879c5e7@googlegroups.com> <mop9uu$jp8$1@dont-email.me>
Reply-To Thomas 'PointedEars' Lahn <php@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1437719494 10040 eJwNx8ERwDAIA7CVQsAGj9ODsv8IrX6C09gZBAOLbdcyMQPI50gbb7X+8zGdCOk2N+3eUiU+Fa0QRw== (24 Jul 2015 06:31:34 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Fri, 24 Jul 2015 06:31:34 +0000 (UTC)
User-Agent KNode/4.14.2
X-User-ID eJwFwYEBwCAIA7CXQFqo5wyV/09YwkjPU0gmOBxLZcg8oL77+SJIRncvG8wzU7iy9pmvfKkEPb/oqH64/AEY/hRM
Cancel-Lock sha1:kExES94VmoBgOOT1s9kyQCDkK5c=
X-NNTP-Posting-Host eJwNwoERACEIA7CVHqHFdcTC/iP4l8BpvBkEA/Nbl/01zVeT1wSVLLElJWZgHeU7vc+hTz0f4xGU
Xref csiph.com comp.lang.php:15610

Show key headers only | View raw


Denis McMahon wrote:

> In apache, at the host level, use:
> 
> AliasMatch ^/.* /index.php
> 
> Then every request will get passed to /index.php.

To a *file* named “index.php” located *in the root directory
of the filesystem*.  _Not_ in the Web root.  A file that
most certainly does not and in any case SHOULD NOT exist.
A file that in a default configuration *for good reasons*
cannot be accessed:

---------------------------------------------------------
# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www.
# The former is used by web applications packaged in Debian,
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<Directory />
  Options FollowSymLinks
  AllowOverride None
  Require all denied
</Directory>
---------------------------------------------------------

RTFM.

-- 
PointedEars
Zend Certified PHP Engineer
Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.php | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

change page url according to id adam <apoorv.kanungo@gmail.com> - 2015-07-19 23:08 -0700
  Re: change page url according to id gordonb.dc822@burditt.org (Gordon Burditt) - 2015-07-20 03:14 -0500
    Re: change page url according to id apoorv.kanungo@gmail.com - 2015-07-20 03:06 -0700
      Re: change page url according to id Richard Damon <Richard@Damon-Family.org> - 2015-07-20 08:29 -0400
      Re: change page url according to id Denis McMahon <denismfmcmahon@gmail.com> - 2015-07-21 00:47 +0000
        Re: change page url according to id Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-07-21 12:28 -0400
          Re: change page url according to id Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-21 22:04 +0200
            Re: change page url according to id apoorv.kanungo@gmail.com - 2015-07-22 06:10 -0700
              Re: change page url according to id gordonb.8ssp0@burditt.org (Gordon Burditt) - 2015-07-22 17:34 -0500
              Re: change page url according to id "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-07-23 01:12 +0200
              Re: change page url according to id Denis McMahon <denismfmcmahon@gmail.com> - 2015-07-22 23:45 +0000
                Re: change page url according to id Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-24 08:28 +0200

csiph-web