If mod_dir is running on the server, which adds the prevailing forwardslashes / when your rewrite rule conflicts with a folder such as mydomain / mypage / folder_name, mod_dir removes the forward trap at the end of the folder name /, since this is the real directory, if your rules specify in htaccess, so as not to follow the indexes (Options -Indexes), and there is nothing in the folder, then your rules will be fine, if there is anything other than the index in the folder, then expect this to happen with your URL: mydomain / MyPage / folder_name / ? = request MyPage / folder_name
Since this is the standard cPanel configuration, the problem is not your mistake, this is a serious configuration conflict that allows hackers to identify script requests and directory structures.
I have no solution if you cannot disable multivisors in the http.conf server, since most htacces solutions lead to a redirect loop.
This is an unconfirmed conflict / error for cPanel, so do not hold your breath for a solution, and the desktop may consist of putting your wntire project in one folder and calling the internal pages.
source share