【发布时间】:2012-09-13 14:02:15
【问题描述】:
我正在使用这个 URL 缩短器,但我很难设置它。 https://github.com/mathiasbynens/php-url-shortener
我已经设置了数据库,相应地更改了配置文件。我将文件放在一个子目录中,并从 .htaccess 文件中删除了 Rewritebase。
如果有人可以提供帮助,我不确定这两个脚本是什么意思? `## Favelets / Bookmarklets
提示
// js
javascript:(function(){var%20q=prompt('URL:');if(q){document.location='http://yourshortener.ext/shorten?url='+encodeURIComponent(q)}}());
缩短此网址
// js
javascript:(function(){document.location='http://yourshortener.ext/shorten?url='+encodeURIComponent(location.href)}());
【问题讨论】:
标签: php javascript .htaccess url-shortener