I am using RewriteRule for seo friendly URL its working fine but when I load project in browser its open search.php file instead of index.php file. My .htaccess file is below:
RewriteEngine on
RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC]
RewriteRule ^ /%1 [NC,L,R]
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^ %{REQUEST_URI}.php [NC,L]
#Adjust default time zone
SetEnv TZ America/Washington
ErrorDocument 404 http://localhost/estate2/404
RewriteCond %{REQUEST_URI} ^/404/$
RewriteRule ^(.*)$ <YourRelativePathToPHPFile>/404.php [L]
RewriteCond %{REQUEST_URI} ^/search.php/$
RewriteRule ^([^/\.]+)?$ search.php?type=$1