当我去http://sweatingthebigstuff.com/lending-club-loans-to-avoid/时,我得到一个404页面。但是当我退格两次时,它将删除/
而不是d
,所以这里有一个隐藏的空间。一旦我删除它,它的作品。URL中的隐藏空间
我的网址有什么隐藏空间,我可以在.htaccess
文件中检测并删除它吗?否则,我添加的每个重定向都必须是其中的一个。
编辑:
这里就是我想可能是从.htaccess
文件有关:
RewriteCond %{REQUEST_URI} !\.[^./]+$
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://sweatingthebigstuff.com/$1/ [R=301,L]
RedirectMatch 301 ^/[0-9]{4}/[0-9]{2}/[0-9]{2}/(.+)$ /$1
实际上,它看起来像这样:http://sweatingthebigstuff.com%E2%80%8B/lending-club-loans-to-avoid%E2%80%8B/
需要看到你的.htaccess文件。 – 2012-07-06 00:12:36
现在,它将我的浏览器重定向到http://www.sweatingthebigstuff.com/lending-club-loans-avoid/ – 2012-07-06 00:14:04
添加了一些.htaccess代码 – Daniel 2012-07-06 00:14:58