F
F
fastreg02013-11-27 23:58:34
htaccess
fastreg0, 2013-11-27 23:58:34

How to display the site.ru/hello.php?page=1 page on the test.site.ru subdomain (not a redirect)?

Hello.
There is a page, let's say http://site.ru/hello.php. The page identifier is passed to this page using the GET method through the page parameter, which is subsequently pulled from the database. That is, for example, http://site.ru/hello.php?page=1. There is a need to show the content of the page, which is shown, for example, at http://site.ru/hello.php?page=1 , on the http://test.site.ru/ subdomain . Several such substitutions should be made.
Can you tell me the best way to implement this? There is an ISPmanager panel, you can create a subdomain in it, but how to display information on it? Is it possible to make a substitution through .htaccess so that when you go to http://test.site.ru/the user was shown the page http://site.ru/hello.php?page=1?
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2013-11-28
@ScorpLeX

http://httpd.apache.org/docs/current/mod/mod_rewrite.html
http://habrahabr.ru/post/83597/
Of course, it's better to understand how it works, but there is a generator like this .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question