嗨,我有一个网站的网址为:http://www.couponvenue.in/store/myntra/我怎样才能将网址更改为http://www.couponvenue.in/myntra.html。我已经尝试过使用.htacess代码,这是我在互联网上找到的一些谷歌代码。WordPress的网址定制,使其更多SEO友好的网址
htaccess的代码如下所示:(。*)。
重写规则^ HTML $ /存储/ $ 1 [L]
上述的规则,如果我将键入URL:http://www.couponvenue.in/myntra.html,这将尝试打开的URL:http://www.couponvenue.in/store/myntra
我已经在核心php文件中试过它,它工作正常,但是当我在wordpress站点使用相同的代码http://www.couponvenue.in/store/myntra/它给了我404错误,请建议我该如何让它也运行在我的wordpress网站上。
我使用的是使用Clipper主题的WordPress 4.0.1。固定链接的当前设置设置为“发布名称”,显示我的商店URL为http://www.couponvenue.in/store/myntra/,但当我将固定链接设置为默认设置时,它显示我的商店URL:如http://www.couponvenue.in/?stores=myntra。
我已经试过了插件WordPress的搜索引擎由Yoast但没有suscess
请建议我如何能够创造出像http://www.couponvenue.in/myntra.html而不是http://www.couponvenue.in/store/myntra/ OR http://www.couponvenue.in/?stores=myntra URL也请让我知道什么是错的规则重写规则^ HTML $ /存储/ $ 1 [L]
你用Woocommerce?你真的需要删除它或重命名它就够了吗? – nunorbatista 2014-12-04 19:01:15