Jump to content

changing directory index using htaccess


shane07

Recommended Posts

Hello to all

I have written

DirectoryIndex folder/index.php

in my htaccess file and uploaded onto the root folder

so that the 'folder' acts as root for my site.

But it affects all other subfolders in the root.

I cannot access other subfolders, because I need them for other subdomains.

Is there any way to implement to above code for the root only and not for subfolders?

 

Thanx

Link to comment
https://forums.phpfreaks.com/topic/123414-changing-directory-index-using-htaccess/
Share on other sites

I believe I have accomplished what you are trying to accomplish, through the use of the virtual hosts file. Specifying AllowOverride all (or, none) on a per directory basis. Generally .htaccess would only require authentication for the directory in which it is placed.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.