0

I am currently using Apache on Linux. I've been working on an HTML project, but now need to run it on a server.

So for example, even if the root directory is "/var/www/" and localhost/index.html points to "/var/www/index.html" I can make localhost/project/index.html point to "/project/index.html"

Can I also do this in .htaccess files?

1 Answer 1

2

You want Alias, but that won't work in .htaccess files. You'd have to use mod_rewrite for those.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.