I am using htaccess to redirect my URL and to hide .PHP extension but it take to a unknown folder following code i have used
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^index$ index.php [L]
重定向时,显示以下错误
Not Found
The requested URL /abc/index was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
我的网站名称与abc.com类似,但它显示上述错误,包含未知文件夹/ abc / index