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


Groups > comp.lang.php > #15608

Re: change page url according to id

From "Christoph M. Becker" <cmbecker69@arcor.de>
Newsgroups comp.lang.php
Subject Re: change page url according to id
Date 2015-07-23 01:12 +0200
Organization solani.org
Message-ID <mop80k$thd$1@solani.org> (permalink)
References (2 earlier) <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>

Show all headers | View raw


apoorv.kanungo@gmail.com wrote:

> Guys I am sorry if I did not put my question correctly I know we can
> do that with htaccess but I have to manually enter redirect code in
> the htaccess.
> 
> I want it to be dynamic so that if user enter title of the page
> contact us the url in the browser will be example.com/contact us.
> 
> kind of like wordpress where it does not have multiple pages but one
> default template and url and title of all the pages are different.
> 
> can we do that with $_SERVER['REQUEST_URI']

I suggest you have a look at the CGI variable `PATH_INFO`, which is
supposed to be available in PHP via `$_SERVER['PATH_INFO']`.

-- 
Christoph M. Becker

Back to comp.lang.php | Previous | NextPrevious in thread | Next 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