Page 1 of 1

redirect old post .html to new without

Posted: Wed Jun 26, 2019 7:22 am
by elpak
Hello, I have 12 old blog post in .html and want to redirect without.html.
In .htaccess is not working this Redirect 301 /blogpost.html > /blogpost. Is it better to add redirects in .htaccess with diferent code or in theme?
I have Devtheme

Re: redirect old post .html to new without

Posted: Wed Jun 26, 2019 8:41 am
by Jay
Where exactly do you put your redirects in htaccess?
It has a significant impact despite that your condition is invalid.

It's better to store them in this file rather than using php redirects in theme files. But from the other hand you have to remember about your modified htaccess when you update bludit.

Re: redirect old post .html to new without

Posted: Wed Jun 26, 2019 9:37 am
by elpak
How do I set a proper .htaccess file?

Re: redirect old post .html to new without

Posted: Wed Jun 26, 2019 5:18 pm
by bozodev
elpak wrote:
Wed Jun 26, 2019 9:37 am
How do I set a proper .htaccess file?
Here are some good examples.

https://linchpinseo.com/htaccess-rules/