Magento Url重写管理

Magento Url重写管理,magento,magento-1.7,Magento,Magento 1.7,我正在使用URl重写管理从 'http://example.com/magento/contacts' to 'http://example.com/contact-us.html' 我为ID路径和目标路径输入了“contacts”,为请求路径输入了“contact us.html”。 它会把我引向 'http://example.com/magento/contact-us.html' instead of 'http://example.com/contact-us.html'.I n

我正在使用URl重写管理从

'http://example.com/magento/contacts' to 

'http://example.com/contact-us.html'
我为ID路径和目标路径输入了“contacts”,为请求路径输入了“contact us.html”。 它会把我引向

'http://example.com/magento/contact-us.html' instead of 'http://example.com/contact-us.html'.I need to redirect to     'http://example.com/contact-us.html'.

如果有,请提供解决方案。提前感谢。

重写是相对于基本url的。如果您的基本url是
example.com/magento
,则无法使用url重写来获取所需内容。我可以使用绝对路径吗?或者任何其他解决方案。也许您应该从.htaccess文件中添加此重定向。