HtAccess Rewrite Needed

Posted by pws5068 on Stack Overflow See other posts from Stack Overflow or by pws5068
Published on 2010-04-02T14:35:32Z Indexed on 2010/04/02 14:53 UTC
Read the original article Hit count: 442

Filed under:
|

My host will not allow me to change the default folder of my primary domain. I have managed to Rewrite http://www.mysite.com to the real folder

public_html/mysite.com/www/

with the following code:

RewriteEngine On
RewriteRule ^$ /mysite.com/www/ [R=301,L]

This does successfully load my domain from the subfolder, but the url becomes:

http://mysite.com/mysite.com/www/

How can I continue loading requests from http://mysite.com/index.html in the correct folder shown above, without showing it in the client-side url?

© Stack Overflow or respective owner

Related posts about htaccess

Related posts about mod-rewrite