English 中文(简体)
链接重写和删除旧链接
原标题:link rewriting and deleting old links

网络上唯一找不到的就是如何删除旧的网页, 所以每页只有一个链接 。

这是我的,这是我的通道

RewriteBase /
RewriteCond %{HTTP_HOST} !^domain.eu$ [NC]
RewriteRule ^(.*)$ http://domain.eu/$1 [L,R=301]

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://domain.eu/$1/ [L,R=301]

RewriteRule ^secured/ - [L]

RewriteRule ^login/$ paginas/login.php 
RewriteRule ^([a-zA-Z0-9]+)/$ index.php?taal=$1 
RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/$ index.php?taal=$1&pagina=$2

ErrorDocument 404 /paginas/error404.php

因此,如何使索引.php?taal=1 & amp;pagina=2 类型链接无法使用, 以便人们只能使用域名.eu/1/2/?

谢谢

问题回答

为何要排除这些泌尿素? 如果更短的版本更好, 用户也改用它们的短版, 他们就会开始使用短版。 在我看来, 使“ 老的” 泌尿素停止工作是不可取的。 301 重用是解决你问题的好办法!





相关问题
Using SimplePie with CodeIgniter and XAMPP

I am using CodeIgniter 1.7.2 with XAMPP 1.7.2 on a Windows computer. I am trying to make use of SimplePie. I followed all the instructions I could find: a copy of simplepie.inc is in my applications/...

Multiple Sites with common files

I have developed over 50 sites that all use the exact same files other than CSS and IMAGES, I currently duplicate the files each time I create a new site and upload different css and images. What ...

http server validation

I finish a litle http server, writing from scratch. I would like to be sure that my imlementation is conforme to the HTTP specifications. W3C give us tools for HTML/XML conformance, but i see nothing ...

热门标签