Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't make it work on Xampp server #14

Open
Moxie5 opened this issue Sep 11, 2021 · 0 comments
Open

I can't make it work on Xampp server #14

Moxie5 opened this issue Sep 11, 2021 · 0 comments

Comments

@Moxie5
Copy link

Moxie5 commented Sep 11, 2021

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

htaccess:

RewriteEngine On
RewriteBase /

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant