redirect old post .html to new without

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

Wed Jun 26, 2019 7:22 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: 61
Joined: Mon Feb 11, 2019 8:41 pm

Wed Jun 26, 2019 8:41 am

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

Wed Jun 26, 2019 9:37 am

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

Wed Jun 26, 2019 5:18 pm

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