The routing url is like 'my_website/:param'
But my location contain a folder name is as same as the params. So when I browse with http://my_website/apple. The browser will display the folder instead of pass the value 'apple' to the web.
How should I set the .htaccess?Thanks The following only work when the folder with same value is not exist.
<ifModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(.*) index.html [NC,L]
</ifModule>
http://my_website/appleshould be served by which file(eg--> .php file etc) from backend?