Здравствуйте.
Как удалить отображение index.html с главной страницы сайта.
Нужно, что бы при наборе www.www.ru не перекидывало на www.www.ru/index.html.
Пробовал .htaccess но результат - проблема с выводом главной страницы.
При попытке прописать DirectoryIndex index.html выдает сообщение - Forbidden. You don’t have permission to access / on this server.
Содержание файла .htaccess :
php_flag register_globals off
#The following text can be used to replace the friendly URLs sections of the MODx .htaccess file.
# Friendly URLs
RewriteEngine On
RewriteBase /
# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]
# Exclude /assets and /manager directories from rewrite rules
RewriteRule ^(manager|assets) - [L]
# Redirect from mydomain.com/rootname to mydomain.com/rootname/
#RewriteRule ^ru$ ru/ [R=301,L]
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ru/(.*)$ index.php?q=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
#DirectoryIndex index.html