简体   繁体   English

WP URL重写/自定义永久链接

[英]WP URL Rewrites/Custom Permalinks

I need to set custom URL's for my WP posts across 2 domains using WPML. 我需要使用WPML为两个域中的WP帖子设置自定义URL。 I had been hoping the Custom Permalinks plugin would be able to do this, but after investigation, it does not work well with WPML. 我一直希望Custom Permalinks插件能够做到这一点,但是经过调查,它不适用于WPML。

Is there any way I can do this? 有什么办法可以做到吗? With HTAccess rewrites perhaps? 用HTAccess重写吗?

How the site currently looks (WP standard permalinks with horrible numbers if the post name is the same!): 该网站当前的外观(如果帖子名称相同,WP标准的永久链接将带有可怕的数字!):

How I want it to look (clean and without numbers): 我希望它的外观(干净且没有数字):

This has been fixed using Custom Permalinks plugin and some hacks. 此问题已使用“自定义永久链接”插件和一些技巧进行了修复。 If you have the same issue, please contact me for the hacked plugin. 如果您遇到相同的问题,请与我联系以获取被黑的插件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM