Blogger Information
Blog 43
fans 0
comment 3
visits 26535
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
PHP apche接收前端authorization数据
Time
Original
590 people have browsed it

在文件.htaccess添加代码

  1. <IfModule mod_rewrite.c>
  2. Options +FollowSymlinks -Multiviews
  3. RewriteEngine On
  4. #Authorization Headers
  5. RewriteCond %{HTTP:Authorization} ^(.+)$
  6. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  7. RewriteCond %{REQUEST_FILENAME} !-d
  8. RewriteCond %{REQUEST_FILENAME} !-f
  9. RewriteRule ^(.*)$ index.php?s=/$1 [QSA,PT,L]
  10. </IfModul
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!