Hi,
I want to access my xojo web file, by just type the domain and sub folder.
I have to type like,
http://localhost/test/myapplication.cgi
to make it executed.
my question is, how to make it execute without typing the .cgi filename too. so want its executed even I do typing
http://localhost/test/
I do creating .httaccess file and add,
#Alternate default index page
DirectoryIndex myapplication.cgi
but no luck.
any helps?
thanks
arief
You can use mod_rewrite in your .htaccess to achieve this effect.
Something like this:
[code]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule test/(.*)$ test/myapplication.cgi
[/code]
To use DirectoryIndex in your .htaccess “AllowOverride All” has to be set in your Apache config.
You can configure something like: “DirectoryIndex index.html index.php” within your apache and rename myapplication.cgi -> index.cgi
or you can upload index.html with this content:
[code]
redirect
[/code]
[quote=385056:@Marius Dieter Noetzel]To use DirectoryIndex in your .htaccess “AllowOverride All” has to be set in your Apache config.
You can configure something like: “DirectoryIndex index.html index.php” within your apache and rename myapplication.cgi -> index.cgi
or you can upload index.html with this content:
[code]
redirect
[/code][/quote]
Thanks…
It works…
Regards,
Arief