Sign in

Redirect old url to new url with htaccess

  • This topic has 1 reply, 2 voices, and was last updated 1 month, 1 week ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3815
    Niketas

    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
    nicholasoneil

    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

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