如何将Magento商店网址重定向到WooCommerce商店网址?

时间:2014-05-12 16:05:08

标签: .htaccess url mod-rewrite redirect woocommerce


我正在尝试从Magento商店网址到Woocommerce商店网址进行301重定向。这是我在.htaccess文件中使用的内容:

Redirect 301 /catalog/index.php/customer/account/ /my-account/

这应该将Magento帐户页面重定向到WooCommerce我的帐户页面。
但是,当您尝试在我的新页面上转到 /catalog/index.php/customer/account / 时网站将您重定向到 / shop / customer / account / (我的网站上不存在)。

同样,我在.htaccess文件中有另一个重定向:

Redirect 301 /catalog/index.php/greeting-cards.html /product-category/greeting-cards/

同样, /catalog/index.php/greeting-cards.html 重定向到 /shop/greeting-cards.html ,而不是我指定的网址我的.htaccess文件。所有以 / catalog / 为基础的URL都只将其基址重定向到 / shop /

我的.htaccess文件正在运行,因为我在那里有另一个重定向:

Redirect 301 /about_us.php /about-us/

重定向工作正常。

必须有一些来自WordPress或WooCommerce的规则将 / catalog / 重写为 / shop / 。那么如何将Magento商店网址重定向到WooCommerce商店网址呢?

我很感激你能给我的任何帮助。谢谢!

我在跑步:
WordPress 3.8.3
WooCommerce 2.1.5

网站网址 http://www.thepottersheart.com/

完整.htaccess文件:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Redirect 301 /about_us.php /about-us/
Redirect 301 /catalog/ /shop/
Redirect 301 /contact_us.php /contact-us/
Redirect 301 /calendar.php /calendar/
Redirect 301 /what_people_say.php /testimonials/
Redirect 301 /where_we_go.php /where-we-go/
Redirect 301 /catalog/index.php /shop/
Redirect 301 /catalog/index.php/customer/account/ /my-account/
Redirect 301 /catalog/index.php/checkout/cart/ /cart/
Redirect 301 /catalog/index.php/checkout/onepage/ /checkout/
Redirect 301 /catalog/index.php/customer/account/login/ /my-account/
Redirect 301 /catalog/index.php/grace-dvd-and-pottery.html /product-category/grace-dvd/
Redirect 301 /catalog/index.php/greeting-cards.html /product-category/greeting-cards/
Redirect 301 /catalog/index.php/worship-flags-praise-flags.html /product-category/worship-flags-praise-flags/

0 个答案:

没有答案
相关问题