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

Rewrite Engine Error #711

Closed
iamnadith opened this issue Jan 7, 2024 · 3 comments
Closed

Rewrite Engine Error #711

iamnadith opened this issue Jan 7, 2024 · 3 comments

Comments

@iamnadith
Copy link

image

As you can see in this picture it's shows like this. What should I do?

@laiaqwq
Copy link

laiaqwq commented Jan 7, 2024

You missed step 2
Make the rewrite works, the rule is in .htaccess file, make sure any query redirect to index.php.
See #53 (comment)

@iamnadith
Copy link
Author

This is my .htaccess file. Can you help me to fix this.

# Apache

# LoadModule rewrite_module modules/mod_rewrite.so

# AllowOverride All

RewriteEngine On

RewriteCond $1 !^(.well-known)

RewriteRule ^(.*) index.php?/$1 [L]

###-----------------------------------

nginx

rewrite ^/(?!.well-known)(.*)$ /index.php?/$1 last;

nginx Subdirectory 在子目录中使用

location /OneManager2/ {

rewrite ^/(.*)$ /OneManager2/index.php?/$1 last;

}

caddy

rewrite {

to index.php?/$1

}

caddy2 Caddyfile

@try_files {

not path /.well-known/*

file {

try_files index.php

}

}

rewrite @try_files {http.matchers.file.relative}

###-----------------------------------

@laiaqwq
Copy link

laiaqwq commented Jan 9, 2024

If your web server is not Apache, you should manually change the configuration file of your web server. The configuration methods of different web servers are different. you should copy the content corresponding with your web server and add it to the configuration file (like nginx.conf in nginx or Caddyfile in Caddy ... )of your web server.

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

3 participants