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


Groups > comp.lang.php > #17414

page redirecttion in PHP ?

From pehache <pehache.7@gmail.com>
Newsgroups comp.lang.php
Subject page redirecttion in PHP ?
Date 2017-05-07 10:19 +0200
Message-ID <en83jtF9gfpU1@mid.individual.net> (permalink)

Show all headers | View raw


Hi,

I have converted an old SPIP site into a static version, using wget. 
It's OK, except that URLs of the type

1) http://xxx/article.php3?id_article=6296

are now

2) http://xxx/article.php3?id_article=6296.html

Not a big deal, Google re-index the site from the root URL http://xxx/ 
which is still valid, but I wonder if there exist a simple mean to 
redirect the invalid URLs (1) to the valid ones (2) ?

I guess that it could be done by creating an appropriate "article.php3" 
file, but I am a full newbie in php...

Any help appreciated

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


Thread

page redirecttion in PHP ? pehache <pehache.7@gmail.com> - 2017-05-07 10:19 +0200
  Re: page redirecttion in PHP ? Jerry Stuckle <jstucklex@attglobal.net> - 2017-05-07 07:43 -0400
  Re: page redirecttion in PHP ? Luuk <luuk@invalid.lan> - 2017-05-07 15:42 +0200
    Re: page redirecttion in PHP ? pehache <pehache.7@gmail.com> - 2017-05-07 16:12 +0200
      Re: page redirecttion in PHP ? pehache <pehache.7@gmail.com> - 2017-05-07 16:15 +0200
        Re: page redirecttion in PHP ? Jerry Stuckle <jstucklex@attglobal.net> - 2017-05-07 13:49 -0400
          Re: page redirecttion in PHP ? pehache <pehache.7@gmail.com> - 2017-05-14 14:40 +0200
            Re: page redirecttion in PHP ? "J.O. Aho" <user@example.net> - 2017-05-14 16:31 +0200
              Re: page redirecttion in PHP ? pehache <pehache.7@gmail.com> - 2017-05-18 08:40 +0200
                Re: page redirecttion in PHP ? Jerry Stuckle <jstucklex@attglobal.net> - 2017-05-18 08:14 -0400

csiph-web