Hi,
When I create a subdomain it creates it and creates the default index.html file. Which is great.
But when I go to view the subdomain I get:
Not Found
The requested URL /index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
It's looking for index.php not index.html. If I rename it to php it's fine or if I create an .htaccess file it's fine.
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.ca [nc]
rewriterule ^(.*)$ http://www.domain.ca/$1 [r=301,nc]
But how do I get it to read index.html also without creating a .htaccess file or renaming the HTML file to PHP?
The domain works fine, it uses my index.php file and if it's not there it will use the index.html file.
Thanks for your help...
D-Spayre
When I create a subdomain it creates it and creates the default index.html file. Which is great.
But when I go to view the subdomain I get:
Not Found
The requested URL /index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
It's looking for index.php not index.html. If I rename it to php it's fine or if I create an .htaccess file it's fine.
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.ca [nc]
rewriterule ^(.*)$ http://www.domain.ca/$1 [r=301,nc]
But how do I get it to read index.html also without creating a .htaccess file or renaming the HTML file to PHP?
The domain works fine, it uses my index.php file and if it's not there it will use the index.html file.
Thanks for your help...
D-Spayre