Quantcast
Channel: html – Tech ABC to XYZ
Viewing all articles
Browse latest Browse all 30

Two identical pages [ANSWERED]

$
0
0

On 2010-02-28 18:15:02 James Apache asked:

Two identical pages

I have a php file, which when called creates a webpage. However, there are some things I can’t do with this. Is it possible to mirror that webpage on another page, ie. have index.html calling and displaying the php file every time?

Hope that makes sense! Thank you.

He received 4 answers
eventually accepting:

I’m no web designer but to do the same thing on our site we use <meta http-equiv="REFRESH" content="0;url=/index.php"> inside the head of an otherwise empty index.html. That will make calls to index.html end up at index.php.

The answer with the highest score with 1 points was:

HTML pages are static text files, they are not processed by the web server and so can’t do anything at all. Another PHP file would instead be able to do this, so you could have f.e. “index.php” call “someotherfile.php”.

If you absolutely want your users to be able to request “index.html” and instead obtain something else, then you’ll need some URL rewriting.

Of course, you should really check out the original question.

The post Two identical pages [ANSWERED] appeared first on Tech ABC to XYZ.


Viewing all articles
Browse latest Browse all 30

Trending Articles