Мой вопрос довольно прост. У меня есть главная страница (www.domain.com/index.php)
Есть ли способ перенаправить пользователя в /index.php, когда он вводит только www.domain.com?
А также удалить index.php из URL, когда он на нем?
Я немного проверил .htaccess, но, похоже, ни один из приемов не справился с работой.
Спасибо!
EDIT
Вот мой .htaccess:
# To set your custom php.ini, add the following line to this file:
# suphp_configpath /home/yourusername/path/to/php.ini
DirectoryIndex index.php
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
<Files .htaccess>
order allow,deny
deny from all
</Files>
Options All -Indexes
Как видите, я помещаю в него DirectoryIndex index.php, но не изменяю его: (