View Full Version : x.com=x.com/index.cgi=x.com/index.php
b
December 12th, 2001, 17:05
how do i make my server to recognize
mydomain.com to go to mydomain.com/index.php
also mydomain.com/something/ to go to mydomain.com/something/index.cgi
does it have to do with .htaccess?
Dusty
December 12th, 2001, 17:14
Add:
DirectoryIndex index.cgi
To your .htaccess file.
keith
December 12th, 2001, 19:11
yeah, with .htaccess. to have different extensions [like .php, .cgi, etc]:
DirectoryIndex index.php index.cgi and so on...
the extension that appears higher in the list will have priority... so with the format above, if a directory has both an index.php and index.cgi, index.php will be loaded because it came before index.cgi in the .htaccess file.
so if you'd want index.php to load, don't upload an index.cgi file to that directory as well
if you want index.cgi to load, don't upload an index.php file to that directory. simple.
b
December 13th, 2001, 12:05
thanks guys. it worked just fine
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.