apache - .htaccess setting problem
世界只因有你
世界只因有你 2017-05-16 17:05:05
0
1
639

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9_\/]+)$ index.php/$1 [L]

Currently use the above statement to abbreviate xxx.com/index.php/abc as xxx.com/abc

Now I want to use abc.xxx.com to also access xxx.com/index.php/abc on this basis. How should I write it?

PS: I have resolved the ip of abc.xxx.com

世界只因有你
世界只因有你

reply all(1)
我想大声告诉你

RewriteCond %{REQUEST_HOST} (abc).xxx.com
RewriteRule ^(.*)$ index.php/%1 [L]

I just happened to be writing this recently, please use %1

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template