Skip to content

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

Description

@Moxie5

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]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions