php-mvc-framework icon indicating copy to clipboard operation
php-mvc-framework copied to clipboard

I can't make it work on Xampp server

Open Moxie5 opened this issue 4 years ago • 0 comments

Hey, I'm using XAMPP server and I have simple htaccess to redirect to public folder. My router is not working correctly. If the uri is "/" it's working but when I type uri localhost/contact doesn't show the message or error and doesn't load. I got error from xampp server page not found. Even with out the htaccess file doesn't work. I also created virtual host but without results

Listen 81 <VirtualHost *:81> DocumentRoot "F:\mvc\public" <Directory "F:\mvc\public"> AllowOverride All Require all granted </Directory> </VirtualHost>

htaccess:

RewriteEngine On RewriteBase /

RewriteCond %{THE_REQUEST} /public/([^\s?]*) [NC] RewriteRule ^ %1 [L,NE,R=302]

RewriteRule ^((?!public/).*)$ public/$1 [L,NC]

Moxie5 avatar Sep 11 '21 10:09 Moxie5