A
A
Artyom2013-12-22 12:30:17
PHP
Artyom, 2013-12-22 12:30:17

What is the best way to create single page websites?

Hello!
The question arose, How best to do it, I have a small master creating one-page sites, and the address, I want to do the site.test.ru type. So, the question arose, how best to do it. Create a directory in a separate subdom/site folder and add a php file with the code there or from the test.ru/rt/?name=name page, make the name.test.ru from this address. How to do it simply, conveniently and without problems. Apache Ubuntu web server.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
demimurych, 2013-12-22
@art_gur

At the registrar who serves your name, write down that all sites of the type *.test.ru lead to your server.
Further, for simplicity, using the Apache rewrite mod, you convert requests of the form site1.test.ru
to the form test.ru/q=site1
And already in your index.php describe the logic - what content to give and where to get it from if one or another is requested $_GET['q']

M
Mikhail Osher, 2013-12-22
@miraage

Angular is best suited for a one-page site.
Yes, I love this framework.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question