我已经做出了缩短网址,你可以点击这里Puny URL shortenerPHP使URL缩短
它使一个url像www.puny.gq/?l=xx 任何suggetion使它像 WWW。 puny.gq/xx
我已经做出了缩短网址,你可以点击这里Puny URL shortenerPHP使URL缩短
它使一个url像www.puny.gq/?l=xx 任何suggetion使它像 WWW。 puny.gq/xx
看看SEO-freindly链接。他们会做这样的事情。 您必须修改.htaccess
的Apache:
RewriteEngine On
RewriteBase /path/to
RewriteRule ^(.*)$ /index.php?l=$1
这是一个非常简单的例子。您必须调整它,但它会将/xx
重写为/index.php?l=xx
它被称为URL rewriting。
这取决于您使用的Web服务器。
对于nginx的服务器,你可以做这样的:
server {
rewrite ^(/.*)$ /?l=$1 last;
对于Apache看到这一点:http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
这样做是造成内部服务器错误500 –
检查访问我的网站上再次看到错误 –
@AliveColdJuan我不知道你的服务器结构。可能需要将RewriteBase添加到您的.htaccess –