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'm trying to host my website into a folder on the FTP, for example, /site. But on the URL i want to remove this folder, so it will be www.mysite.com.br instead of www.mysite.com.br/site.

I've already achieved it using this rewrite script:

RewriteCond %{REQUEST_URI} !^/site
RewriteRule ^(.*)$ site/$1 [L]

But know when i try to access other files into other folders withing the server, i get a "This webpage has a redirect loop", for example, www.mysite.com.br/downloads/myfile.zip.

Does anyone have any idea how to make Rewrite only don't consider existing files within other folders than /site?

share|improve this question
add comment

1 Answer

You might be able to use mod_alias to do this:

Alias / /path/to/site
share|improve this answer
add comment

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.