redirect old post .html to new without

Post Reply
elpak
Sr. Bludit
Posts: 39
Joined: Wed Jan 03, 2018 10:45 am
Location: Bulgaria
Has thanked: 1 time
Contact:

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: 144
Joined: Mon Feb 11, 2019 8:41 pm
Has thanked: 6 times
Been thanked: 4 times

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: 39
Joined: Wed Jan 03, 2018 10:45 am
Location: Bulgaria
Has thanked: 1 time
Contact:

How do I set a proper .htaccess file?
bozodev
Ssr. Bludit
Posts: 24
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