Я запускаю сайт, используя Joomla cms, где мы отключили index.php
в URL, но теперь он не работает
mysite.com/index.php
Затем мы попробовали файл .htaccess
с помощью следующих команд, а затем на домашней странице его отключено
# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
Работает нормально только на главной странице
mysite.com
Но когда я перехожу на любую страницу с домашней страницы, она выдает ошибку, когда я пытаюсь с индексом . php в промежутке, после чего он работает,
mysite.com/something #throws error with this URL
mysite.com/index.php/something # works fine with this URL
Мне нужна помощь, чтобы навсегда отключить внутренний URL index.php
, даже когда я пытаюсь перейти на любую другую страницу с домашней страницы, заранее спасибо .