Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #15608
| 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 | "Christoph M. Becker" <cmbecker69@arcor.de> |
| Newsgroups | comp.lang.php |
| Subject | Re: change page url according to id |
| Date | Thu, 23 Jul 2015 01:12:26 +0200 |
| Organization | solani.org |
| Lines | 21 |
| Message-ID | <mop80k$thd$1@solani.org> (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> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | solani.org 1437606740 30253 eJwFwQERADEIAzBL8INC5fwN6l/Ckjxw3AokIpXSDoQiLHy+PRWWFUuKau6/tO47k3TrG/MAGawRAg== (22 Jul 2015 23:12:20 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Wed, 22 Jul 2015 23:12:20 +0000 (UTC) |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
| X-User-ID | eJwFwYEBACAEBMCVQj7Gofz+I3TnBsE9G47tdK5Qi25UPATf4JbYivZUjtoxYgZFYWfy+Qcg4RGn |
| In-Reply-To | <fd692e5f-69bb-42bd-bacf-c875a879c5e7@googlegroups.com> |
| Cancel-Lock | sha1:giXX029X4GyVKZWtm2S5vwWeJI0= |
| X-NNTP-Posting-Host | eJwFwYEBwCAIA7CXhrSsnCMo/59gQg+L/hEMcDin3W8RUKRdiuZdO1UD1LfGlmwWSsqzjf0AFnoQ1Q== |
| Xref | csiph.com comp.lang.php:15608 |
Show key headers only | 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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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