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


Groups > comp.lang.php > #15610

Re: change page url according to id

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.php
Subject Re: change page url according to id
Date 2015-07-24 08:28 +0200
Organization PointedEars Software (PES)
Message-ID <8461971.mpfdkj3dN5@PointedEars.de> (permalink)
References (3 earlier) <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>

Show all headers | 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