munny Posted January 17, 2021 Share Posted January 17, 2021 (edited) Hi, there. I have a website inside /home/munny/public_html/skeletronik/ and there there is a .htaccess file that controls directives to /public/index.php in a MVC standard created by me. I'm new to .htaccess. Well, that's my .htaccess file configuration: RewriteEngine onRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ /public/index.php?url=$1 [QSA,L]The result is:Not FoundThe requested URL was not found on this server.Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.What do you suggest for RewriteRule? Edited January 17, 2021 by munny Link to comment Share on other sites More sharing options...
Krydos Posted January 18, 2021 Share Posted January 18, 2021 What are you trying to do exactly? Rewrite everything to index.php? Link to comment Share on other sites More sharing options...
munny Posted January 18, 2021 Author Share Posted January 18, 2021 (edited) What are you trying to do exactly? Rewrite everything to index.php?I've already did it. All I did was: RewriteEngine onRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ /home/munny/public_html/skeletronik/public/index.php?url=$1 [QSA,L] Edited January 18, 2021 by munny Link to comment Share on other sites More sharing options...
Recommended Posts