Dinesh Nagar
Dinesh Nagar

Reputation: 768

Mapping host name Zend2

I have developed a site recently which home page opens when i hit this url but i want to open my site home page when user hit only this link.

Upvotes: 0

Views: 39

Answers (2)

Spacy
Spacy

Reputation: 111

If you only have access to the data directory, but not to the apache config itself, you can add a .htaccess with contents (must be allowed by the server):

RedirectMatch 301 /(.*) /ght/public$1

Alternatively, why don't you upload your PHP and HTML files directly into the webserver root? (above the /ght/public/ directory) What access to you have to the webserver?

Upvotes: 0

ins0
ins0

Reputation: 3928

update your apache vhost configuration and set the DocumentRoot to ght/public/

Upvotes: 1

Related Questions