First, if you have shell access to the server and it's linux can you create a symbolic link (move the current contents to a new folder in the same directory as public_html named html for example, delete public_html, then create a 'new' public_html that is actually a symbolic link to it {a symbolic link would be called a shortcut in windows}).
Second, if it's Apache: http://httpd.apache.org/docs/1.3/mod/mod_alias.html
Code:
Redirect / http://example.com/main
That will give you a temporary (302) redirect code, if you want it to be permament use Redirect permament instead. Or use seeother instead (303) to indicate something has been replaced.
If nothing else you can try mod_rewrite:
Code:
RewriteRule ^/(.*) /main$1
__________________
PHP Code:
<?php echo "Hello World"; ?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
|