E
E
EVOSandru62015-09-16 09:24:04
linux
EVOSandru6, 2015-09-16 09:24:04

How to remove word localhost before websitename in linux lamp?

Good afternoon, there is such a hierarchy of directories so far:
/var/www/html/websitename/index.php
Opens at the address in the browser:
localhost/websitename
Where you need to move the folder with the site so as not to write the word localhost in the address bar . Maybe some other settings are needed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
X-, 2015-09-16
@EVOSandru6

If you want the site to open at:
websitename/index.php
Then:
1. you need to add 127.0.0.1 websitename to hosts
2. Transfer (or reconfigure the config) Files to /var/www/html/ , what would be / var/www/html/index.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question