View Single Post
Old 07-05-2006, 01:48 AM  
Myst
Confirmed User
 
Join Date: Feb 2004
Location: Alberta, Canada
Posts: 4,708
Need a little htaccess help..

How can i redirect all nonexisting directories to /index.html?

for example
www.mydomain.com/asubdirectory and www.mydomain.com/sub2 dont exist. www.mydomain.com/realdirectory does. how can i redirect /asubdirectory and /sub2 to /, and leave /realdirectory requests alone?

ps: if they can be redirected to /index.php?subdomainrequested=$thesubdomain that would be even better
__________________
ICQ: 298-523-037
Myst is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote