redirect old post .html to new without

Post Reply
elpak
Sr. Bludit
Posts: 35
Joined: Wed Jan 03, 2018 10:45 am

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
User avatar
Jay
Master Bludit
Posts: 133
Joined: Mon Feb 11, 2019 8:41 pm

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.
elpak
Sr. Bludit
Posts: 35
Joined: Wed Jan 03, 2018 10:45 am

How do I set a proper .htaccess file?
bozodev
Ssr. Bludit
Posts: 23
Joined: Sun May 12, 2019 1:03 am

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/
Checkout Pi Lab (Powered by Bludit PRO & Raspberry Pi) - Bludit Backer
Post Reply