Nirjonadda
Well-known member
Hello,
I have issue permit the subfolder URLs then asked to cPanel support and get response this below. Please let me know that how can fix this issue?
I have issue permit the subfolder URLs then asked to cPanel support and get response this below. Please let me know that how can fix this issue?
Code:
Hello,
There were main issues in my check.
The .htaccess in public_html is conflicting. This is due to specific mod_rewrites rules. Based on the rules in place, I am confident the issue lies here in this block:
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
Specifically, likely this line:
RewriteRule ^.*$ index.php [NC,L]
It needs to be adjusted to permit the subfolder URLs like /test and /bot to load properly, otherwise the rules push the site into a 404 error. However, I tried to tweak it as a courtesy and this didn't permit the main site to function properly so I reverted it back. I would advise having a developer assist in customizing this rewrite rule in the .htaccess so you can both have a fully functional main site, plus allow the subdirectories to load for your applications.
One other thing I wanted to mention is while I could use the 'test' URL I set up with the .htaccess moved aside, bot still can't load. This appears to be an issue with the custom application in specific, as the test working indicates the implementation is funcitonal as expected.
--
Have a great day!
Joshua Browning
Technical Analyst II
cPanel, L.L.C.