How to change Blogs base url

How to change Blogs base url

Praavii
Shopify Partner
1 0 0

Hello,

 

We currently use this url : https://www.praavii.in/blogs/news to access blogs. We want to change this url to  https://www.praavii.in/blogs. And one blog details url is : https://www.praavii.in/blogs/news/womens-shirt and we want to change this url to https://www.praavii.in/blogs/womens-shirt. So, how can we do this.

Please suggest.

Replies 3 (3)

DaisyVo
Shopify Partner
4409 489 583

Hi @Praavii 

 

In order to change the URL of the blog, please go to Online store > Blog posts https://prnt.sc/9TRnfvrNDT82  > Choose the blog you want to change the URL > Scroll down to Search Engine listing https://prnt.sc/tS2hDhKtyC9Z > URL handle

 

I hope this helps,

 

Best,

 

Daisy

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution

pawankumar
Shopify Partner
722 104 123

Hi @Praavii 
Unfortunately, you can't remove the blogs handle suffix (news in your case) in shopify
Although, you can change news to something else in the backend
Thanks!

- Need a Shopify developer? Chat on WhatsApp +91-9467121281
- Coffee Tip: Buymeacoffee  | Email: thepkpawankumar@gmail.com
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Best regards,
Pawan

Avitanshi_17
Pathfinder
100 10 14

Hi Praavii,

To achieve the desired URL structure changes for your blog, you need to perform URL rewriting and update the necessary configurations. 

Here's a step-by-step guide:

1. Update Your Website's CMS Settings

  • If you’re using a CMS like Shopify, WordPress, or another platform:

Shopify: By default, blogs in Shopify are categorized, but to change URLs:

  1. Navigate to Online Store > Navigation > URL Redirects.
  2. Create redirects for the old URLs to the new URLs.
  3. Update the blog settings to reflect the desired folder structure (if supported).

2. Configure URL Redirects (301 Redirects)

Implementing 301 redirects ensures old URLs automatically point to the new ones without breaking existing links or affecting SEO.

Option A: Server-Level Redirects

  • If you have access to your server configuration (e.g., Apache or Nginx):

Apache (using .htaccess😞
apache
Copy code
# Redirect /blogs/news to /blogs

RedirectMatch 301 ^/blogs/news/(.*)$ /blogs/$1

 

# Redirect the main /blogs/news URL to /blogs

Redirect 301 /blogs/news /blogs

  •  

Nginx:
nginx
Copy code
rewrite ^/blogs/news/(.*)$ /blogs/$1 permanent;

rewrite ^/blogs/news$ /blogs permanent;

  •  
  • Place these rules in your server configuration or .htaccess file.

Option B: Platform-Level Redirects

  • If using a managed platform (like Shopify or WordPress.com):
    • Use built-in URL redirect tools (as mentioned above).
    • Create individual redirects:
      • Old: /blogs/news/womens-shirt
      • New: /blogs/womens-shirt

3. Update Internal Links

  • Update all internal links across your website to reflect the new URLs.
  • Use tools like Screaming Frog to crawl your website and identify any remaining links to old URLs.

4. Inform Search Engines

Submit updated sitemaps via Google Search Console:

  1. Generate a new sitemap reflecting the new URLs.
  2. Submit the sitemap in Google Search Console > Sitemaps.

5. Verify the Changes

  • Test redirects to ensure they are functioning correctly.
  • Use tools like Redirect Checker or browser developer tools to confirm 301 status codes.
  • Check for broken links using tools like Broken Link Checker.

By following these steps, you can seamlessly transition to the new URL structure without disrupting user experience or harming your SEO rankings.

Stay inspired,
Best regards,
Avitanshi
Contact Us at www.mastroke.com