Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Redirect old url to new url with htaccess

  • #3815
    Avatar photo[anonymous]

    Hi! I’ve recently changed my website theme with Editorial and now i have some url to correct. My domain provider doesn’t allow me to redirect and  have to do it with .htaccess.

    I’ve tried to create a file in Tools > File Manager > Add New File – .htaccess

    with the following code:

    Redirect 301 /blog/page-name.html https://www.domain.com/page-name/

    But it doesn’t work. Have you any advice on how to do that?

    #3848
    Avatar photo[anonymous]

    Hi,

    When you publish your site through Publii, you can choose to set it up through Netlify and use the Redirect file to solve this problem. I ran into the same problem and wanted to redirect visitors who visit kressonbiblechurch.org/podcast to anchor.fm/kressonbiblechurch Hope this helps!

    Source: https://docs.netlify.com/routing/redirects/#syntax-for-the-redirects-file

    Thank you,

    Nick

    #9443
    Avatar photo[anonymous]

    Hey Nick! Did you upload the redirect file into Publii’s file manager?