Ecommerce Shopify WordPress Discussion

Redirecting Shop page to Homepage in Wordress

Is there anyway I can duplicate the homepage to be used as content for the woocommerce shop page. So basically just using the same page for two URL homepage and shoppage. Support told me to use redirect canonical URL if I want to avoid creating redirects. So we can have multiple URLs lead to the same page, to prevent any SEO demerits for duplicate content as long as the link rel=”canonical” is enabled. I tried using the below code in Wordrpress in functions.php but it won't work. The URLs are https://lullyandrose.com.au/shop and I want to use the content of the Homepage which is https://lullyandrose.com.au/ add_filter( 'redirect_canonical', 'custom_redirect_canonical', 10, 2 ); function custom_redirect_canonical( $redirect_url, $requested_url ) { if( $requested_url == 'https://lullyandrose.com.au/shop' ) { return $redirect_url == '/'; } }
Need no to redirect it, just follow the below given steps and you are done... Login as a administrator and go to Settings >> Reading At the Your homepage displays section, check out A static page (select below) In the Homepage dropdrown, select your SHOP page and save the changes, you are done see below given screenshot

February 26, 2024

must be help if you want show home page if request page shop page add_filter( 'redirect_canonical', 'custom_redirect_canonical', 10, 2 ); function custom_redirect_canonical( $redirect_url, $requested_url ) { if($redirect_url == is_shop()){ return $redirect_url == '/'; // and you can use this // wp_redirect(site_url()); // exit; } } Run code snippetExpand snippet

February 26, 2024

TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.