The purpose is to display a Url such as test. comfrontindex in the mobile phone version as test. commfrontindex. the actual link should be test. comfrontindex? Modem: & amp; lt; IfModu... the Rewrite in the Test environment is written in the following way:
Display as http://test.com/m/front/index on phone
The actual link should be http://test.com/front/index? Mode = m
Now, the Rewrite in the Test environment is written as follows:
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, but a problem occurs on the server.
The local test environment is XAMPP (FPM), and Apache FastCGI is used on the server.
I would like to ask how to Rewrite the Rewrite rule for normal parsing. thank you?
Reply content:
The purpose is to set the URL of the PC version http://test.com/front/index.
Display as http://test.com/m/front/index on phone
The actual link should be http://test.com/front/index? Mode = m
Now, the Rewrite in the Test environment is written as follows:
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, but a problem occurs on the server.
The local test environment is XAMPP (FPM), and Apache FastCGI is used on the server.
I would like to ask how to Rewrite the Rewrite rule for normal parsing. thank you?