Hello, I'm trying to redirect requests for my root address before I finish moving my domain URL over to point at hostek. I'm ditching GoDaddy, so please help!

I first simply tried adding 301 response redirects in my default.aspx file in the wwwroot/ folder, but I get referred to the parking page when I request http://blahblahblah-com.securec30.ezhostingserver.com/ . It's almost like hostek wasn't allowing the redirect there.


I then tried to use the ISAPI scripting as shown below. The redirects work if a user requests http://blahblahblah-com.securec30.ez...ult.aspx....it will go to http://blahblahblah-com.securec30.ez...n/default.aspx

but not if the user leaves out the specific file...and simply punches in http://blahblahblah-com.securec30.ezhostingserver.com. In that case, you get the parking page.

Any help you could provide would be great, thanks. I have a few different applications running and it's just cleaner if I can put the main application in it's own folder.


my .htaccess file:

RewriteEngine On

# Also redirect the root folder.
RewriteCond %{HTTP_HOST} ^blahblahblah-com.securec30.ezhostingserver.com$
RewriteRule ^(/)?$ main/default.aspx [L]

#try to redirect root request
RewriteRule default.aspx main/default.aspx [I,O,R=301,L]


# Exclude requests already going to /subfolder to avoid an infinite loop
RewriteRule ^main.*$ - [NC,L]

# Rewrite normal requests to /subfolder
RewriteRule ^(.*)$ /main/$1 [L]