PDA

View Full Version : Question about the addon & subdomain



k4knight
07-22-2008, 03:23 PM
previously I asked :

I have a primary domain "xxx.com" and I recently assigned a new one "yyy.com" as a addon domain pointing to the subdirectory "xxx.com/zzz". However, my addon domain always direct me to "xxx.com" but not "xxx.com/zzz".

Now I found that if I put an "index.html" into the subdir, it works. However, if I put in the "index.php" file, it doesnt.

Do you know why is this?

morgar
07-22-2008, 05:04 PM
Hi. Sorry about my english. Seems to be a setup problem. I have an index.php on an addon domain and it is working properly.

Did you change the addon from one folder to another one?

Falcon1986
07-22-2008, 05:42 PM
@'k4knight':

You should keep this all in one thread since this topic is related to your earlier one.

Have you set up any redirects through cPanel in the past?

What about adding special rules to your .htaccess file? If you have an .htaccess file located in the subdirectory in which your addon domain points, then either modify or add the following line:


DirectoryIndex index.html index.htm index.php

This statement tells the Apache server to display one of those files (in order as they appear) when someone accesses that subdirectory.