Subdomain tricky problem...

visoredge

Verified User
Joined
Jul 4, 2005
Messages
10
Hello,

On my ensim site, I had a folder called /folder that has a few php/html files in it.

I had a subdomain folder.mysite.com that redirects to a file called mysite.com/folder.php

NOW,
on DA, if I have a subdomain called folder.mysite.com it automatically redirects to the mysite.com/folder...

However, I want it to go to www.mysite.com/folder.php instead.

IF i put a .htaccess file insider the folder with:
Redirect / http://www.mysite.com/folder.php

That works, BUT then I can't get to the other php/html files that reside there in the folder.

If i put

Redirect /index.php http://www.mysite.com/folder.php
Then I get an error...

IS there a way to get a subdomain http://folder.mysite.com/ to redirect to http://www.mysite.com/folder.php while still allowing me to access other php and html files in http://www.mysite.com/folder?

THANKS!
 
In other words you want to display the indes of the folder/ directory but have folder.php displayed in the address bar?
 
Back
Top