Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.