Sign in

Redirect old url to new url with htaccess

  • This topic has 2 replies, 3 voices, and was last updated 9 months, 1 week ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #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 photonicholasoneil

    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 photocandidexmedia

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.