[英]how to make .htaccess ignore specific uri part
I don't know how to make a rewrite condition to obtain the right behaviour.我不知道如何进行重写条件以获得正确的行为。
This is the link i have:这是我的链接:
http://www.example.com/ variable /Known/Uri/ecc http://www.example.com/变量/Known/Uri/ecc
or或者
http://www.example.com/ variable http://www.example.com/变量
I'd like to ignore the "variable" part and consider only the rest of the uri.我想忽略“变量”部分,只考虑 uri 的其余部分。 I will consider "variable" only when reading $_SERVER["REQUEST_URI"].只有在读取 $_SERVER["REQUEST_URI"] 时,我才会考虑“变量”。
I think what you want to do is:我想你想做的是:
RewriteEngine On
RewriteRule ^[^/]+(.*)$ $1 [L]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.