View Single Post
Old 10-16-2005, 07:39 PM  
directfiesta
Too lazy to set a custom title
 
directfiesta's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Punta Cana, DR
Posts: 29,910
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 ( * )
__________________
I know that Asspimple is stoopid ... As he says, it is a FACT !

But I can't figure out how he can breathe or type , at the same time ....

Last edited by directfiesta; 10-16-2005 at 07:42 PM..
directfiesta is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote