Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #17136 > unrolled thread
| Started by | bit-naughty@hotmail.com |
|---|---|
| First post | 2016-10-13 11:57 -0700 |
| Last post | 2016-10-14 08:00 +0200 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.lang.php
URL redirection bit-naughty@hotmail.com - 2016-10-13 11:57 -0700
Re: URL redirection Jerry Stuckle <jstucklex@attglobal.net> - 2016-10-13 16:43 -0400
Re: URL redirection bit-naughty@hotmail.com - 2016-10-19 06:45 -0700
Re: URL redirection Jerry Stuckle <jstucklex@attglobal.net> - 2016-10-19 10:19 -0400
Re: URL redirection "J.O. Aho" <user@example.net> - 2016-10-14 08:00 +0200
| From | bit-naughty@hotmail.com |
|---|---|
| Date | 2016-10-13 11:57 -0700 |
| Subject | URL redirection |
| Message-ID | <51696d6a-7960-4863-a5d7-6fd58eabacf4@googlegroups.com> |
I have a site, www.site.com which has users, and I would like site.com/user to go say, a "profile" page for each user. However, say each user can post posts, I'd like site.com/review/2 to go to a page containing a post, ie. the URL has to redirect to DIFFERENT URLs (.php programs), depending on whether "/review/<something>" has been appended to "site.com" - how do I do this? And what's going on, behind the scenes actually? (I know very little about doing URL rewriting on Apache).... Also, for showing the posts, there will not be any straightforward URL for the page containing a post, it'll be brought down with AJAX (by calling printpost.php , say). But I'd still like the post itself to be available to the Googlebot crawler (as site.com/review/2) - how do I do this? I realise this is not a PHP question, but I think people here might know.... :) Thanks.
[toc] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2016-10-13 16:43 -0400 |
| Message-ID | <ntork0$t9i$1@jstuckle.eternal-september.org> |
| In reply to | #17136 |
On 10/13/2016 2:57 PM, bit-naughty@hotmail.com wrote: > I have a site, www.site.com which has users, and I would like site.com/user to go say, a "profile" page for each user. However, say each user can post posts, I'd like site.com/review/2 to go to a page containing a post, ie. the URL has to redirect to DIFFERENT URLs (.php programs), depending on whether "/review/<something>" has been appended to "site.com" - how do I do this? And what's going on, behind the scenes actually? (I know very little about doing URL rewriting on Apache).... > > > Also, for showing the posts, there will not be any straightforward URL for the page containing a post, it'll be brought down with AJAX (by calling printpost.php , say). But I'd still like the post itself to be available to the Googlebot crawler (as site.com/review/2) - how do I do this? > > > I realise this is not a PHP question, but I think people here might know.... :) > > > Thanks. > No, it's not a PHP question, and is off topic here. Try an appropriate newsgroup and you'll get a good answer. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | bit-naughty@hotmail.com |
|---|---|
| Date | 2016-10-19 06:45 -0700 |
| Message-ID | <6260cacc-1a4b-439d-b490-de32c01716ce@googlegroups.com> |
| In reply to | #17137 |
On Thursday, October 13, 2016 at 8:43:04 PM UTC, Jerry Stuckle wrote: >Try an appropriate > newsgroup and you'll get a good answer. What's a good Usenet group for this question?
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2016-10-19 10:19 -0400 |
| Message-ID | <nu7vdj$qnj$1@jstuckle.eternal-september.org> |
| In reply to | #17139 |
On 10/19/2016 9:45 AM, bit-naughty@hotmail.com wrote: > On Thursday, October 13, 2016 at 8:43:04 PM UTC, Jerry Stuckle wrote: > >> Try an appropriate >> newsgroup and you'll get a good answer. > > What's a good Usenet group for this question? > What did you look for? -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | "J.O. Aho" <user@example.net> |
|---|---|
| Date | 2016-10-14 08:00 +0200 |
| Message-ID | <e6bakgFo78hU1@mid.individual.net> |
| In reply to | #17136 |
On 10/13/2016 08:57 PM, bit-naughty@hotmail.com wrote: > I have a site, www.site.com which has users, and I would like site.com/user to go say, a "profile" page for each user. > However, say each user can post posts, I'd like site.com/review/2 to go to a page containing a post, ie. the URL has > to redirect to DIFFERENT URLs (.php programs), depending on whether "/review/<something>" has been appended to "site.com" > - how do I do this? And what's going on, behind the scenes actually? (I know very little about doing URL rewriting on Apache).... Apache is OT here, a search engine would been able to give you some help to find a starting point, like: https://www.sitepoint.com/apache-mod_rewrite-examples/ The simplest is to make all requests of the format not accessing any real pages to be redirected to one page which looks at the request url and then serves what you need, this is how popular CMS works. -- //Aho
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web