我有几个WordPress的网址,我想简化为SEO的目的。我有 http://www.example.com/fr/product-fr/review-fr/.htaccess网址掩码
我想将其更改为http://www.example.com/fr/product/review/(删除-fr),但不在内部更改URL。因此,用户将访问http://www.example.com/fr/product/review/,但服务器将服务于http://www.example.com/fr/product-fr/review-fr/的内容。
我想这样做来解决WordPress和WPML的URL问题。
欣赏的帮助
是的,但没有得到任何工作。以下是我尝试使用的一个简单示例 RewriteRule^about/$ about-es/ 这应该服务于www.example.com/es/about-es/,但用户会看到www.example.com/es/about /作为网址。 – Xerri
感谢您的规则....将立即将它放在RewriteEngine后 – Xerri
它没有工作:(再次感谢您的帮助,但我仍然有404时访问http://www.example.com/es/about/ – Xerri