The goal is to have a URL like the PC version Http://test.com/front/index
Display as Http://test.com/m/front/index on the mobile version
The actual link should be http://test.com/front/index?mode=m
Now my rewrite on the test environment is written like this:
Options +followsymlinks
Rewriteengine on
Rewritecond%{request_filename}!-d
Rewritecond%{request_filename}!-f
Rewriterule ^m/? (. *)/?$ index.php/$1/?mode=m [qsa,pt,l]
Rewritecond%{request_filename}!-d
Rewritecond%{request_filename}!-f
Rewriterule ^ (. *) $ index.php/$1 [qsa,pt,l]
Everything can be accessed normally, and there is a problem on the server
The local test environment is XAMPP (according to others, FPM), and the server is Apache FastCGI
Want to ask how should rewrite rewrite rules to normal parsing, thank you?
Reply content:
The goal is to have a URL like the PC version Http://test.com/front/index
Display as Http://test.com/m/front/index on the mobile version
The actual link should be http://test.com/front/index?mode=m
Now my rewrite on the test environment is written like this:
Options +followsymlinks
Rewriteengine on
Rewritecond%{request_filename}!-d
Rewritecond%{request_filename}!-f
Rewriterule ^m/? (. *)/?$ index.php/$1/?mode=m [qsa,pt,l]
Rewritecond%{request_filename}!-d
Rewritecond%{request_filename}!-f
Rewriterule ^ (. *) $ index.php/$1 [qsa,pt,l]
Everything can be accessed normally, and there is a problem on the server
The local test environment is XAMPP (according to others, FPM), and the server is Apache FastCGI
Want to ask how should rewrite rewrite rules to normal parsing, thank you?