好的,基本上
(没有错字)
应该打电话
http://miniqr.com/api/create.php?content=http://www.anyurl.com/
为了实现这一点,我在根 .htaccess 中有这个
RewriteRule ^http:\/\/(.*)$ \/api\/create.php\?content=http:\/\/$1 [L]
RewriteRule ^https:\/\/(.*)$ \/api\/create.php\?content=https:\/\/$1 [L]
可悲的是,它曾经工作过,然后服务器被更新,现在它不起作用
有人知道为什么吗?(或知道另一种方法)帮助会很棒
我的 .htaccess 看起来像这样:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} !^miniqr\.com$ [NC]
RewriteRule ^(.*)$ http://miniqr.com/$1 [L,R=301]
RewriteRule ^(^$|index\.php|robots\.txt|docs|reader\/) - [L]
RewriteRule ^http:\/\/(.*)$ \/api\/create\.php\?content=http:\/\/$1 [L]
RewriteRule ^https:\/\/(.*)$ \/api\/create\.php\?content=https:\/\/$1 [L]