On my page, when I write url domain.com/abc, it uses htaccess RewriteRule (located below) and opens the company-profile.php page, displaying the ABC profile. ABC EXAMPLE. THIS CAN BE SEVERAL
However, even I have a domain.com/index.php file, when I write only domain.com and press enter, it brings me to the company-profile.php page where it should show the index.php file
My question is: how can I fix this?
RewriteEngine On RewriteRule ^([a-z0-9]+)?$ /domain.com/company-profile.php?cid=$1 [NC,L]
source share