Quote:
|
Originally Posted by mkx
Thanks for the reply, I need to add document reroutes to the htaccess file so that if someone types in www.mydomain.com/asdjflasdjfladsjflasdjf it will redirect to www.mydomain.com which is the reason I need to find the right .htaccess to edit. There is already a default one added for each newly hosted account, i just need to know the directory it is in so I can edit it. This avoids time wasted by adding the same .htaccess file manually to each new account.
|
an ;htacces file controls the folder it is in and ALL folders below it.
Now,
www.mydomain.com/asdjflasdjfladsjflasdjf , does that really exist?
If it is the only file that you want to redirect, use a simple java sript . If you have many of different name, then you would need to use the mod-rewrite.
You would then say to redirect ALL pages to
www.mydomain.com , EXCEPT the actual page that you do not want redirected.
If you only have a few pages, then in mod_rewrite, you would list those pages with the rewrite instructions.
That .htaccess file would be in the " public_html " or " www" folder. To see it with an ftp program, make sure that preferfences allows to show " hidden files ".
EDIT; You also want to edit the " main " file so that when you create a new account it is done the same way ... Not sure about that, maybe with wildcards ( * )