Forum Moderators: phranque

Message Too Old, No Replies

subdomains and .htaccess

         

joker197cinque

11:51 am on May 26, 2006 (gmt 0)

10+ Year Member



I'm trying to configure .htaccess file for a DNS entry.

download.mydomain.com

This entry in host company created a folder:

root-->download (index.html and .htaccess ddicated files)

I would like that this domain point to root site

No redirect, only that files root is /.

How can I do this?

I tried lots of script but obtain only to being redirected also in address bar to www.

Any help appreciated.

Regards.

stef25

3:05 pm on May 26, 2006 (gmt 0)

10+ Year Member



Redirect 301 /domain [url.com...]

that would redirect everything in the domain folder to the specified url next to it

maybe /domain should be /domain/ not sure

jdMorgan

4:03 pm on May 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ask your host to fix this by pointing the new subdomain (or all/wild-card subdomains) to your main domain's directory.

You can't fix this with mod_rewrite or mod_alias; The only way to do it is with *nix symbolic links, and that doesn't always work, depending on your filesystem permissions.

Jim